ClassDefaultKeySoundPlayer
Represents a sound player for playing sounds when a key of a RadVirtualKeyboard is pressed.
Definition
Namespace:Telerik.Windows.Controls.VirtualKeyboard
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public class DefaultKeySoundPlayer : IKeySoundPlayer, IDisposable
Inheritance: objectDefaultKeySoundPlayer
Implements:
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
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
Implements
Methods
Dispose()
Releases all resources used by the DefaultKeySoundPlayer class.
Declaration
public void Dispose()
Implements
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
Play(BaseKeyViewModel)
Plays the sound base on the BaseKeyViewModel provided.
Declaration
public void Play(BaseKeyViewModel viewModel)
Parameters
viewModel
The view model of the key to play a sound for.
Implements
~DefaultKeySoundPlayer()
Declaration
protected ~DefaultKeySoundPlayer()