Class VirtualKeyboardLayoutPanel
Represents a class that hosts all Base
Inheritance
Inherited Members
Namespace: Telerik.WinControls.VirtualKeyboard
Assembly: Telerik.WinControls.UI.dll
Syntax
public class VirtualKeyboardLayoutPanel : BaseVirtualKeyboardLayout, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IVirtualKeyboardLayout
Constructors
VirtualKeyboardLayoutPanel()
Initializes a new instance of the Virtual
Declaration
public VirtualKeyboardLayoutPanel()
VirtualKeyboardLayoutPanel(Orientation)
Initializes a new instance of the Virtual
Declaration
public VirtualKeyboardLayoutPanel(Orientation orientation)
Parameters
System. The orientation of Keyboard |
Properties
KeyboardLayouts
Gets a collection of all added Base
Declaration
public ObservableCollection<BaseVirtualKeyboardLayout> KeyboardLayouts { get; }
Property Value
KeyDefaultSize
Gets or sets the default size in pixels for keys.
Declaration
public static SizeF KeyDefaultSize { get; set; }
Property Value
System.
|
LayoutSpacing
Gets or sets the spacing between each Base
Declaration
public double LayoutSpacing { get; set; }
Property Value
System.
|
Orientation
Gets or sets the way how Keyboard
Declaration
public Orientation Orientation { get; set; }
Property Value
System.
|
TotalColumnsCount
Gets the total number of logical columns.
Declaration
public override double TotalColumnsCount { get; }
Property Value
System.
|
Overrides
TotalRowsCount
Gets the total number of logical rows.
Declaration
public override double TotalRowsCount { get; }
Property Value
System.
|
Overrides
Methods
ArrangeHorizontally(SizeF)
Arranges the Keyboard
Declaration
protected virtual void ArrangeHorizontally(SizeF finalSize)
Parameters
System. The final size. |
ArrangeOverride(SizeF)
Arranges the Virtual
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System. The size that is available for element. |
Returns
System. The rectangle occupied by the element. Usually |
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
ArrangeVertically(SizeF)
Arranges the Keyboard
Declaration
protected virtual void ArrangeVertically(SizeF finalSize)
Parameters
System. The final size. |
CreateExtendedKeyboardLayout(Boolean)
Creates a new instance of the Virtual
Declaration
public static VirtualKeyboardLayoutPanel CreateExtendedKeyboardLayout(bool addFunctionKeys = true)
Parameters
System. A value indicating whether to include the function keys group. |
Returns
Virtual The created instance. |
CreateKeyboardLayout(Boolean, Boolean, Boolean, Boolean)
Creates a new instance of the Virtual
Declaration
public static VirtualKeyboardLayoutPanel CreateKeyboardLayout(bool addFunctionKeys = true, bool addNumpadGroup = true, bool addHomeGroup = true, bool addArrowsInMainGroup = false)
Parameters
System. A value indicating whether to include the function keys group. |
System. A value indicating whether to include the numpad keys group. |
System. A value indicating whether to include the home keyboard buttons group. |
System. A value indicating whether to include the arrow keys in the main group. |
Returns
Virtual The created instance. |
CreateNumpadLayout(Boolean)
Creates a new instance of the Virtual
Declaration
public static VirtualKeyboardLayoutPanel CreateNumpadLayout(bool defaultLayout = true)
Parameters
System. If true loads the default Numpad buttons layout(numlock button is on the bottom), otherwise the traditional(numlock is on top). |
Returns
Virtual The created instance. |
CreateSimplifiedKeyboardLayout(Boolean)
Creates a new instance of the Virtual
Declaration
public static VirtualKeyboardLayoutPanel CreateSimplifiedKeyboardLayout(bool addHomeGroup = false)
Parameters
System. A value indicating whether to include the home keyboard buttons group. |
Returns
Virtual The created instance. |
GetAllKeys()
Gets a list with all IKey instances in this object and its children.
Declaration
public override IList<IKey> GetAllKeys()
Returns
System. The IList with all keys. |
Overrides
GetAllRows()
Gets a list with all Row instances in this object and its children.
Declaration
public override IList<Row> GetAllRows()
Returns
System. The IList with all rows. |
Overrides
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the Virtual
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System. The size that is available to the Virtual |
Returns
System. The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.
ResetLayout()
Resets the logical layout. When Virtual
Declaration
public override void ResetLayout()
Overrides
ShouldArrangeChild(RadElement)
Gets a value indicating, whether a child will be arranged during the ArrangeOverride.
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
Rad The child. |
Returns
System. Whether the child will be arranged in ArrangeOverride. |
Overrides
UpdateKeysFontScale(Double, Double)
Updates the Font
Declaration
protected virtual void UpdateKeysFontScale(double singleKeyWidth, double singleKeyHeight)
Parameters
System. The width in pixels of a single key. |
System. The height in pixels of a single key. |