-
Notifications
You must be signed in to change notification settings - Fork 140
PlaySoundAction
branh edited this page Dec 4, 2018
·
1 revision
PlaySoundAction plays some sound.
This behavior causes the sound file located at Source
Uri to be played at Volume
when it is triggered.
<Button x:Name="button">
<Behaviors:Interaction.Triggers>
<Behaviors:EventTrigger EventName="Click" SourceObject="{Binding ElementName=button}">
<Behaviors:PlaySoundAction Source="../../Assets/Cheer.mp3" Volume="1.0" />
</Behaviors:EventTrigger>
</Behaviors:Interaction.Triggers>
</Button>
- Introduction
- Contribution
- Behaviors Reference
- CallMethodAction
- ChangePropertyAction
- ConditionBehavior
- ControlStoryboardAction
- DataStateBehavior
- FluidMoveBehavior
- FluidMoveSetTagBehavior
- GoToStateAction
- InvokeCommandAction
- LaunchUriOrFileAction
- MouseDragElementBehavior
- PlaySoundAction
- RemoveElementAction
- SetDataStoreValueAction
- TranslateZoomRotateBehavior