Interface IKeyViewModelFactory
Represents a factory for creating Rad
Namespace: Telerik.Windows.Controls.VirtualKeyboard
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
public interface IKeyViewModelFactory
Methods
CreateKey(Int32, KeyType, String, Double, Double, Int32, String, Boolean)
Creates a key that sends a virtual key code when pressed.
Declaration
BaseKeyViewModel CreateKey(int virtualKey, KeyType keyType, string displayText = null, double width = 1, double height = 1, int alternateVirtualKey = -1, string alternateText = null, bool showSecondaryText = false)
Parameters
System. The virtual key code. |
Key The type of the key. |
System. The display text. |
System. The logical width of key. |
System. The logical height of key. |
System. The virtual key code in alternate mode. |
System. The text in alternate state. |
System. Indicates whether to show the secondary text element. |
Returns
Base The created Base |
CreateSpace(Double, Double)
Creates a view model that represents empty spaces in a row of keys.
Declaration
BaseKeyViewModel CreateSpace(double width, double height)
Parameters
System. The width of the space. |
System. The height of the space. |
Returns
Base The created Base |