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

Represents the class for virtual keyboard lock key view models.

Definition

Constructors

Initializes a new instance of the LockKeyViewModel class.

C#
public LockKeyViewModel(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.

Properties

Gets or sets the check state of the key.

C#
public bool IsChecked { get; set; }

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 based on the provided key update context.

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

The context that contains information about the key update.

Overrides: BaseKeyViewModel.Update(IKeyUpdateContext)