Class DefaultKeySoundPlayer
Represents a sound player for playing sounds when a key of a RadVirtualKeyboard is pressed.
Inheritance
Namespace: Telerik.Windows.Controls.VirtualKeyboard
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
public class DefaultKeySoundPlayer : Object, IKeySoundPlayer, IDisposable
Constructors
DefaultKeySoundPlayer()
Initializes a new instance of the DefaultKeySoundPlayer class.
Declaration
public DefaultKeySoundPlayer()
DefaultKeySoundPlayer(Stream)
Initializes a new instance of the DefaultKeySoundPlayer class.
Declaration
public DefaultKeySoundPlayer(Stream stream)
Parameters
System.IO.Stream
stream
The stream to the sound file to be played on a key press. |
Properties
IsSoundEnabled
Gets or sets whether sound is enabled.
Declaration
public bool IsSoundEnabled { get; set; }
Property Value
System.Boolean
|
Implements
Methods
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
Finalize()
Declaration
protected override void Finalize()
Play(BaseKeyViewModel)
Plays the sound base on the BaseKeyViewModel provided.
Declaration
public void Play(BaseKeyViewModel viewModel)
Parameters
BaseKeyViewModel
viewModel
The view model of the key to play a sound for. |