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