ContentLink.ElementSoundMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.