PlaySoundAction represents an action that will play a sound to completion.
This Behaviors triggers the playing of a specified sound from Source at Volume level.
Source
Volume
<Button x:Name="button"> <Interactivity:Interaction.Behaviors> <Interactions:EventTriggerBehavior EventName="Click" SourceObject="{Binding ElementName=button}"> <Media:PlaySoundAction Source="Assets/Ding.mp3" Volume="1"/> </Interactions:EventTriggerBehavior> </Interactivity:Interaction.Behaviors> </Button>
There was an error while loading. Please reload this page.