Class
LockKeyViewModel

Represents the class for virtual keyboard lock key view models.

Definition

Namespace:Telerik.Windows.Controls.VirtualKeyboard

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class LockKeyViewModel : BaseKeyViewModel, INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBaseBaseKeyViewModelLockKeyViewModel

Implements: IDisposableINotifyPropertyChanged

Inherited Members BaseKeyViewModel.GetModifiers()BaseKeyViewModel.KeyCommandBaseKeyViewModel.KeySoundPlayerBaseKeyViewModel.VirtualKeyBaseKeyViewModel.KeyTypeBaseKeyViewModel.KeyWidthBaseKeyViewModel.KeyHeightBaseKeyViewModel.ModifierKeysBaseKeyViewModel.DisplayTextViewModelBase.VerifyPropertyName(string)ViewModelBase.InvokeOnUIThread(Action)ViewModelBase.Dispose()ViewModelBase.RaisePropertyChanged(string)ViewModelBase.OnPropertyChanged(string)ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)ViewModelBase.Dispose(bool)ViewModelBase.PropertyChanged

Constructors

LockKeyViewModel(int, double, double, string)

Initializes a new instance of the LockKeyViewModel class.

Declaration

cs-api-definition
public LockKeyViewModel(int virtualKey, double keyWidth, double keyHeight, string displayText)

Parameters

virtualKey

int

The virtual key.

keyWidth

double

The width of the key.

keyHeight

double

The height of the key.

displayText

string

The display text of the key.

Properties

IsChecked

Gets or sets the check state of the key.

Declaration

cs-api-definition
public bool IsChecked { get; set; }

Property Value

bool

Methods

OnKeyCommandExecuted(object)

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

Declaration

cs-api-definition
protected override void OnKeyCommandExecuted(object commandParameter)

Parameters

commandParameter

object

Overrides BaseKeyViewModel.OnKeyCommandExecuted(object)

Update(IKeyUpdateContext)

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

Declaration

cs-api-definition
public override void Update(IKeyUpdateContext context)

Parameters

context

IKeyUpdateContext

The context that contains information about the key update.

Overrides BaseKeyViewModel.Update(IKeyUpdateContext)