Class RegularKeyViewModel
Represents the class for virtual keyboard regular key view models.
Inherited Members
Namespace: Telerik.Windows.Controls.VirtualKeyboard
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
public class RegularKeyViewModel : BaseKeyViewModel, INotifyPropertyChanged, IDisposable
Constructors
RegularKeyViewModel(Int32, Double, Double, Boolean, String)
Initializes a new instance of the RegularKeyViewModel class.
Declaration
public RegularKeyViewModel(int virtualKey, double keyWidth, double keyHeight, bool showSecondaryText, string displayText = null)
Parameters
System.Int32
virtualKey
The virtual key. |
System.Double
keyWidth
The width of the key. |
System.Double
keyHeight
The height of the key. |
System.Boolean
showSecondaryText
Indicates whether to show the secondary text. |
System.String
displayText
The display text of the key. |
Properties
AltText
Gets or sets the display text shown when Alt key is pressed.
Declaration
public string AltText { get; set; }
Property Value
System.String
|
CapsLockText
Gets or sets the display text shown when CapsLock is toggled.
Declaration
public string CapsLockText { get; set; }
Property Value
System.String
|
LowerText
Gets or sets the display text shown when no modifier key is pressed.
Declaration
public string LowerText { get; set; }
Property Value
System.String
|
ShiftText
Gets or sets the display text shown when Shift key is pressed.
Declaration
public string ShiftText { get; set; }
Property Value
System.String
|
ShowSecondaryText
Gets or sets the an additional text shown next to the primary display text.
Declaration
public bool ShowSecondaryText { get; set; }
Property Value
System.Boolean
|
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 regular key view model based on the provided key update context.
Declaration
public override void Update(IKeyUpdateContext context)
Parameters
IKeyUpdateContext
context
An instance of IKeyUpdateContext that supplies the necessary information for the update. |