ElementSoundKind Enum

Definition

Defines constants that specify the sound played by the ElementSoundPlayer.Play method.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum ElementSoundKind
Inheritance
ElementSoundKind
Attributes

Fields

Name Value Description
Focus 0

The sound to play when an element gets focus.

Invoke 1

The sound to play when an element is invoked.

Show 2

The sound to play when a flyout, dialog, or command bar is opened.

Hide 3

The sound to play when a flyout, dialog, or command bar is closed.

MovePrevious 4

The sound to play when a user navigates to the previous panel or view within a page.

MoveNext 5

The sound to play when a user navigates to the next panel or view within a page.

GoBack 6

The sound to play when a user navigates back.

Remarks

For more info, see Sound design guidance.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also