InterfaceIKeyViewModelFactory
Represents a factory for creating RadVirtualKeyboard key view models.
Definition
Namespace:Telerik.Windows.Controls.VirtualKeyboard
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public interface IKeyViewModelFactory
Methods
CreateKey(int, KeyType, string, double, double, int, string, bool)
Creates a key that sends a virtual key code when pressed.
Declaration
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)
Parameters
virtualKey
The virtual key code.
keyType
The type of the key.
displayText
The display text.
width
The logical width of key.
height
The logical height of key.
alternateVirtualKey
The virtual key code in alternate mode.
alternateText
The text in alternate state.
showSecondaryText
Indicates whether to show the secondary text element.
Returns
The created BaseKeyViewModel instance.
CreateSpace(double, double)
Creates a view model that represents empty spaces in a row of keys.
Declaration
BaseKeyViewModel CreateSpace(double width, double height)
Parameters
width
The width of the space.
height
The height of the space.
Returns
The created BaseKeyViewModel instance.