ClassNumpadKeyViewModel
Represents the class for virtual keyboard numpad key view models.
Definition
Namespace:Telerik.Windows.Controls.VirtualKeyboard
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public class NumpadKeyViewModel : BaseKeyViewModel, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseBaseKeyViewModelNumpadKeyViewModel
Implements:
Inherited Members
Constructors
NumpadKeyViewModel(int, double, double, string, int, string)
Initializes a new instance of the NumpadKeyViewModel class.
Declaration
public NumpadKeyViewModel(int virtualKey, double keyWidth, double keyHeight, string displayText, int alternateVirtualKey, string alternateText)
Parameters
virtualKey
The virtual key.
keyWidth
The width of the key.
keyHeight
The height of the key.
displayText
The display text of the key.
alternateVirtualKey
The alternate virtual key.
alternateText
The alternate text.
Properties
AlternateText
Gets or sets the alternate display text of the key. This text is used when the NumLock is not active.
AlternateVirtualKey
Gets or sets the alternate virtual key code. This key is used when the NumLock is not active.
PrimaryText
Gets or sets the primary display text of the key. This text is used when the NumLock is active.
PrimaryVirtualKey
Gets or sets the primary virtual key code. This key is used when the NumLock is active.
Methods
OnKeyCommandExecuted(object)
The method called by the default command assigned to the key.
Declaration
protected override void OnKeyCommandExecuted(object commandParameter)
Parameters
commandParameter
Overrides
Update(IKeyUpdateContext)
Updates the state of the NumpadKeyViewModel based on the specified key update context.
Declaration
public override void Update(IKeyUpdateContext context)
Parameters
context
The key update context used to update the NumpadKeyViewModel.
Overrides