RegularKeyViewModel
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
Initializes a new instance of the RegularKeyViewModel class.
public RegularKeyViewModel(int virtualKey, double keyWidth, double keyHeight, bool showSecondaryText, string displayText = null)
The virtual key.
keyWidthdoubleThe width of the key.
keyHeightdoubleThe height of the key.
showSecondaryTextboolIndicates whether to show the secondary text.
displayTextstringThe display text of the key.
Properties
Gets or sets the display text shown when Alt key is pressed.
public string AltText { get; set; }
Gets or sets the display text shown when CapsLock is toggled.
public string CapsLockText { get; set; }
Gets or sets the display text shown when no modifier key is pressed.
public string LowerText { get; set; }
Gets or sets the display text shown when Shift key is pressed.
public string ShiftText { get; set; }
Gets or sets the an additional text shown next to the primary display text.
public bool ShowSecondaryText { 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 regular key view model based on the provided key update context.
public override void Update(IKeyUpdateContext context)
An instance of IKeyUpdateContext that supplies the necessary information for the update.
Overrides: