BaseKeyViewModel
Represents the base class for virtual keyboard key view models.
Definition
Namespace:Telerik.Windows.Controls.VirtualKeyboard
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public abstract class BaseKeyViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseBaseKeyViewModel
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BaseKeyViewModel class.
Properties
Gets or sets the text to be displayed for the key.
public string DisplayText { get; set; }
Gets or sets the command to be executed hen the key is pressed.
public ICommand KeyCommand { get; set; }
Gets the sound player that will be called to produce a sound when this key is pressed.
public IKeySoundPlayer KeySoundPlayer { get; }
ModifierKeys
ModifierKeys
Gets the state of the modifier keys from the last update.
public ModifierKeys ModifierKeys { get; }
Gets the virtual key of the key.
public int VirtualKey { get; }
Methods
Gets the state of the modifier keys (Shift, Ctrl...).
The method called by the default command assigned to the key.
protected abstract void OnKeyCommandExecuted(object commandParameter)
Called when the state of the keyboard changes.