ContentLink.ElementSoundMode Property

Definition

Gets or sets a value that specifies the control's preference for whether it plays sounds.

public:
 property ElementSoundMode ElementSoundMode { ElementSoundMode get(); void set(ElementSoundMode value); };
ElementSoundMode ElementSoundMode();

void ElementSoundMode(ElementSoundMode value);
public ElementSoundMode ElementSoundMode { get; set; }
var elementSoundMode = contentLink.elementSoundMode;
contentLink.elementSoundMode = elementSoundMode;
Public Property ElementSoundMode As ElementSoundMode

Property Value

An enumeration value that specifies the control's preference for whether it plays sounds. The default is Default.

Remarks

Important

This API supports content links. The Windows features that enable content links are not available in versions of Windows after Windows 10 version 1903. Content links for XAML text controls will not function in versions of Windows later than version 1903.

For more info, see Sound in UWP apps.

Applies to