ElementSoundPlayer ElementSoundPlayer ElementSoundPlayer ElementSoundPlayer Class


Represents a player for XAML control sounds.

public : sealed class ElementSoundPlayer : IElementSoundPlayer
struct winrt::Windows::UI::Xaml::ElementSoundPlayer : IElementSoundPlayer
public sealed class ElementSoundPlayer : IElementSoundPlayer
Public NotInheritable Class ElementSoundPlayer Implements IElementSoundPlayer
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)


For more info, see Sound in UWP apps.


SpatialAudioMode SpatialAudioMode SpatialAudioMode SpatialAudioMode

Gets or sets a value that indicates whether spatial audio is on, off, or handled automatically.

State State State State

Gets or sets a value that specifies whether the system plays control sounds.

Volume Volume Volume Volume

Gets or sets the volume of the sounds played by the Play method.


Play(ElementSoundKind) Play(ElementSoundKind) Play(ElementSoundKind) Play(ElementSoundKind)

Plays the specified sound.

See Also