ElementSoundPlayer ElementSoundPlayer ElementSoundPlayer ElementSoundPlayer Class


Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
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

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