Class PlaySoundAction
This action will play specified sound
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Interactions.Core
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class PlaySoundAction : DependencyObject, IAction
Fields
SourceProperty
The source property
Declaration
public static readonly DependencyProperty SourceProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
Source
Gets or sets the source.
Declaration
public SoundSource Source { get; set; }
Property Value
Type | Description |
---|---|
SoundSource | The source. |
Methods
Execute(Object, Object)
Executes the action.
Declaration
public object Execute(object sender, object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The System.Object that is passed to the action by the behavior. Generally this is AssociatedObject or a target object. |
System.Object | parameter | The value of this parameter is determined by the caller. |
Returns
Type | Description |
---|---|
System.Object | Returns the result of the action. |
Remarks
An example of parameter usage is EventTriggerBehavior, which passes the EventArgs as a parameter to its actions.
Exceptions
Type | Condition |
---|---|
System.NotImplementedException |