ElementSoundPlayerState Enum

Definition

Defines constants that specify whether XAML controls play sounds.

public enum class ElementSoundPlayerState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class ElementSoundPlayerState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum ElementSoundPlayerState
Public Enum ElementSoundPlayerState
Inheritance
ElementSoundPlayerState
Attributes

Windows requirements

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

Fields

Auto 0

The platform determines whether or not sounds are played.

Off 1

Sounds are never played on any platform.

On 2

Sounds are played on all platforms.

Remarks

This enumeration is used by the ElementSoundPlayer.State property.

For more info, see Sound in UWP apps.

Applies to

See also