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:
C#
public class DefaultKeySoundPlayer : IKeySoundPlayer, IDisposable
Inheritance: objectDefaultKeySoundPlayer
Implements:
Constructors
Initializes a new instance of the DefaultKeySoundPlayer class.
C#
public DefaultKeySoundPlayer()
Initializes a new instance of the DefaultKeySoundPlayer class.
C#
public DefaultKeySoundPlayer(Stream stream)
The stream to the sound file to be played on a key press.
Properties
Gets or sets whether sound is enabled.
C#
public bool IsSoundEnabled { get; set; }
Implements:
Methods
C#
protected ~DefaultKeySoundPlayer()
Releases all resources used by the DefaultKeySoundPlayer class.
C#
public void Dispose()
Implements:
Plays the sound base on the BaseKeyViewModel provided.
C#
public void Play(BaseKeyViewModel viewModel)
The view model of the key to play a sound for.
Implements: