Class
ModifierKeyViewModel

Represents the class for virtual keyboard modifier key view models.

Definition

Namespace:Telerik.Windows.Controls.VirtualKeyboard

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

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

Inheritance: objectViewModelBaseBaseKeyViewModelModifierKeyViewModel

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

ModifierKeyViewModel(int, double, double, string)

Initializes a new instance of the ModifierKeyViewModel class.

Declaration

cs-api-definition
public ModifierKeyViewModel(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.

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

Declaration

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

Parameters

context

IKeyUpdateContext

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

Overrides BaseKeyViewModel.Update(IKeyUpdateContext)