Class
NumpadKeyViewModel

Represents the class for virtual keyboard numpad key view models.

Definition

Namespace:Telerik.Windows.Controls.VirtualKeyboard

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

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

Inheritance: objectViewModelBaseBaseKeyViewModelNumpadKeyViewModel

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

NumpadKeyViewModel(int, double, double, string, int, string)

Initializes a new instance of the NumpadKeyViewModel class.

Declaration

cs-api-definition
public NumpadKeyViewModel(int virtualKey, double keyWidth, double keyHeight, string displayText, int alternateVirtualKey, string alternateText)

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.

alternateVirtualKey

int

The alternate virtual key.

alternateText

string

The alternate text.

Properties

AlternateText

Gets or sets the alternate display text of the key. This text is used when the NumLock is not active.

Declaration

cs-api-definition
public string AlternateText { get; set; }

Property Value

string

AlternateVirtualKey

Gets or sets the alternate virtual key code. This key is used when the NumLock is not active.

Declaration

cs-api-definition
public int AlternateVirtualKey { get; set; }

Property Value

int

PrimaryText

Gets or sets the primary display text of the key. This text is used when the NumLock is active.

Declaration

cs-api-definition
public string PrimaryText { get; set; }

Property Value

string

PrimaryVirtualKey

Gets or sets the primary virtual key code. This key is used when the NumLock is active.

Declaration

cs-api-definition
public int PrimaryVirtualKey { get; set; }

Property Value

int

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

Declaration

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

Parameters

context

IKeyUpdateContext

The key update context used to update the NumpadKeyViewModel.

Overrides BaseKeyViewModel.Update(IKeyUpdateContext)