Class
DefaultKeySoundPlayer

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:

cs-api-definition
public class DefaultKeySoundPlayer : IKeySoundPlayer, IDisposable

Inheritance: objectDefaultKeySoundPlayer

Implements: IDisposableIKeySoundPlayer

Constructors

DefaultKeySoundPlayer()

Initializes a new instance of the DefaultKeySoundPlayer class.

Declaration

cs-api-definition
public DefaultKeySoundPlayer()

DefaultKeySoundPlayer(Stream)

Initializes a new instance of the DefaultKeySoundPlayer class.

Declaration

cs-api-definition
public DefaultKeySoundPlayer(Stream stream)

Parameters

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

cs-api-definition
public bool IsSoundEnabled { get; set; }

Property Value

bool

Implements IKeySoundPlayer.IsSoundEnabled

Methods

Dispose()

Releases all resources used by the DefaultKeySoundPlayer class.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Declaration

cs-api-definition
protected virtual void Dispose(bool disposing)

Parameters

disposing

bool

Play(BaseKeyViewModel)

Plays the sound base on the BaseKeyViewModel provided.

Declaration

cs-api-definition
public void Play(BaseKeyViewModel viewModel)

Parameters

viewModel

BaseKeyViewModel

The view model of the key to play a sound for.

Implements IKeySoundPlayer.Play(BaseKeyViewModel)

~DefaultKeySoundPlayer()

Declaration

cs-api-definition
protected ~DefaultKeySoundPlayer()