FlyoutBase.ElementSoundMode Property

Definition

Gets or sets a value that specifies the control's preference for whether it plays sounds.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.Primitives.FlyoutBase.ElementSoundMode.

public:
 property ElementSoundMode ElementSoundMode { ElementSoundMode get(); void set(ElementSoundMode value); };
ElementSoundMode ElementSoundMode();

void ElementSoundMode(ElementSoundMode value);
public ElementSoundMode ElementSoundMode { get; set; }
var elementSoundMode = flyoutBase.elementSoundMode;
flyoutBase.elementSoundMode = elementSoundMode;
Public Property ElementSoundMode As ElementSoundMode

Property Value

ElementSoundMode

An enumeration value that specifies the control's preference for whether it plays sounds. The default is Default.

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

For more info, see Sound in UWP apps.

Applies to

See also