ElementSoundPlayer ElementSoundPlayer ElementSoundPlayer ElementSoundPlayer Class

Definition

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
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

For more info, see Sound in UWP apps.

Properties

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.

Methods

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

Plays the specified sound.

See Also