ElementSoundPlayerState Enum

Definition

Defines constants that specify whether XAML controls play sounds.

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

Fields

Name Value Description
Auto 0

The platform determines whether or not sounds are played.

Off 1

Sounds are never played on any platform.

On 2

Sounds are played on all platforms.

Remarks

This enumeration is used by the ElementSoundPlayer.State property.

For more info, see Sound design guidance.

Applies to

Proizvod Verzije
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also