New to Telerik UI for WPFStart a free 30-day trial

Represents the class for virtual keyboard modifier key view models.

Definition

Constructors

Initializes a new instance of the ModifierKeyViewModel class.

C#
public ModifierKeyViewModel(int virtualKey, double keyWidth, double keyHeight, string displayText)
Parameters:virtualKeyint

The virtual key.

keyWidthdouble

The width of the key.

keyHeightdouble

The height of the key.

displayTextstring

The display text of the key.

Methods

The method called by the default command assigned to the key.

C#
protected override void OnKeyCommandExecuted(object commandParameter)
Parameters:commandParameterobject

Overrides: BaseKeyViewModel.OnKeyCommandExecuted(object)

Updates the state of the virtual keyboard modifier key based on the specified key update context.

C#
public override void Update(IKeyUpdateContext context)
Parameters:contextIKeyUpdateContext

An instance of IKeyUpdateContext that contains the information needed to update the key.

Overrides: BaseKeyViewModel.Update(IKeyUpdateContext)