ElementSoundPlayerState ElementSoundPlayerState ElementSoundPlayerState ElementSoundPlayerState Enum

Definition

Defines constants that specify whether XAML controls play sounds.

public : enum class ElementSoundPlayerState
enum class winrt::Windows::UI::Xaml::ElementSoundPlayerState : int32_t
public enum ElementSoundPlayerState
Public Enum ElementSoundPlayerState
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Fields

Auto Auto Auto Auto 0

The platform determines whether or not sounds are played.

Off Off Off Off 1

Sounds are never played on any platform.

On On On 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.

See also