Class NumpadKeyViewModel
Represents the class for virtual keyboard numpad key view models.
Inherited Members
Namespace: Telerik.Windows.Controls.VirtualKeyboard
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
public class NumpadKeyViewModel : BaseKeyViewModel, INotifyPropertyChanged, IDisposable
Constructors
NumpadKeyViewModel(Int32, Double, Double, String, Int32, 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
System.Int32
virtualKey
The virtual key. |
System.Double
keyWidth
The width of the key. |
System.Double
keyHeight
The height of the key. |
System.String
displayText
The display text of the key. |
System.Int32
alternateVirtualKey
The alternate virtual key. |
System.String
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.
Declaration
public string AlternateText { get; set; }
Property Value
System.String
|
AlternateVirtualKey
Gets or sets the alternate virtual key code. This key is used when the NumLock is not active.
Declaration
public int AlternateVirtualKey { get; set; }
Property Value
System.Int32
|
PrimaryText
Gets or sets the primary display text of the key. This text is used when the NumLock is active.
Declaration
public string PrimaryText { get; set; }
Property Value
System.String
|
PrimaryVirtualKey
Gets or sets the primary virtual key code. This key is used when the NumLock is active.
Declaration
public int PrimaryVirtualKey { get; set; }
Property Value
System.Int32
|
Methods
OnKeyCommandExecuted(Object)
The method called by the default command assigned to the key.
Declaration
protected override void OnKeyCommandExecuted(object commandParameter)
Parameters
System.Object
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
IKeyUpdateContext
context
The key update context used to update the NumpadKeyViewModel. |