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