Udostępnij za pośrednictwem


ElementSoundPlayerState Enum

Definition

Defines constants that specify whether XAML controls play sounds.

public enum class ElementSoundPlayerState
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
enum class ElementSoundPlayerState
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum ElementSoundPlayerState
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

See also