ClassBaseKeyViewModel
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
BaseKeyViewModel(int, KeyType, double, double)
Initializes a new instance of the BaseKeyViewModel class.
Properties
DisplayText
Gets or sets the text to be displayed for the key.
KeyCommand
Gets or sets the command to be executed hen the key is pressed.
KeyHeight
Gets the height of the key.
KeySoundPlayer
Gets the sound player that will be called to produce a sound when this key is pressed.
Declaration
public IKeySoundPlayer KeySoundPlayer { get; }
Property Value
KeyType
Gets the type of the key.
KeyWidth
Gets the width of the key.
ModifierKeys
Gets the state of the modifier keys from the last update.
Declaration
public ModifierKeys ModifierKeys { get; }
Property Value
ModifierKeys
VirtualKey
Gets the virtual key of the key.
Methods
GetModifiers()
Gets the state of the modifier keys (Shift, Ctrl...).
Declaration
protected ReadOnlyCollection<int> GetModifiers()
Returns
OnKeyCommandExecuted(object)
The method called by the default command assigned to the key.
Declaration
protected abstract void OnKeyCommandExecuted(object commandParameter)
Parameters
commandParameter
Update(IKeyUpdateContext)
Called when the state of the keyboard changes.
Declaration
public virtual void Update(IKeyUpdateContext context)
Parameters
context