NumpadKeyViewModel
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
Initializes a new instance of the NumpadKeyViewModel class.
public NumpadKeyViewModel(int virtualKey, double keyWidth, double keyHeight, string displayText, int alternateVirtualKey, string alternateText)
The virtual key.
keyWidthdoubleThe width of the key.
keyHeightdoubleThe height of the key.
displayTextstringThe display text of the key.
alternateVirtualKeyintThe alternate virtual key.
alternateTextstringThe alternate text.
Properties
Gets or sets the alternate display text of the key. This text is used when the NumLock is not active.
public string AlternateText { get; set; }
Gets or sets the alternate virtual key code. This key is used when the NumLock is not active.
public int AlternateVirtualKey { get; set; }
Gets or sets the primary display text of the key. This text is used when the NumLock is active.
public string PrimaryText { get; set; }
Gets or sets the primary virtual key code. This key is used when the NumLock is active.
public int PrimaryVirtualKey { get; set; }
Methods
The method called by the default command assigned to the key.
protected override void OnKeyCommandExecuted(object commandParameter)
Overrides:
Updates the state of the NumpadKeyViewModel based on the specified key update context.
public override void Update(IKeyUpdateContext context)
The key update context used to update the NumpadKeyViewModel.
Overrides: