IKeyViewModelFactory
Interface
Represents a factory for creating RadVirtualKeyboard key view models.
Definition
Namespace:Telerik.Windows.Controls.VirtualKeyboard
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
C#
public interface IKeyViewModelFactory
Derived Classes:
Methods
Creates a key that sends a virtual key code when pressed.
C#
BaseKeyViewModel CreateKey(int virtualKey, KeyType keyType = KeyType.Normal, string displayText = null, double width = 1, double height = 1, int alternateVirtualKey = -1, string alternateText = null, bool showSecondaryText = false)
The virtual key code.
keyTypeKeyTypeThe type of the key.
displayTextstringThe display text.
widthdoubleThe logical width of key.
heightdoubleThe logical height of key.
alternateVirtualKeyintThe virtual key code in alternate mode.
alternateTextstringThe text in alternate state.
showSecondaryTextboolIndicates whether to show the secondary text element.
Returns:The created BaseKeyViewModel instance.
Creates a view model that represents empty spaces in a row of keys.
C#
BaseKeyViewModel CreateSpace(double width, double height)
The width of the space.
heightdoubleThe height of the space.
Returns:The created BaseKeyViewModel instance.