Class
VirtualKeyboardLayout

Represents a class that hosts all IKey instances, the infrastructure to create new keys, organizes them into logical rows and contains the logical layout implementation. This class also has several predefined layouts.

Definition

Namespace:Telerik.WinControls.VirtualKeyboard

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class VirtualKeyboardLayout : BaseVirtualKeyboardLayout, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IVirtualKeyboardLayout

Inheritance: objectDisposableObjectRadObjectRadElementBaseVirtualKeyboardLayoutVirtualKeyboardLayout

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChangedIStylableNodeISupportSystemSkinIVirtualKeyboardLayout

Inherited Members BaseVirtualKeyboardLayout.ArrangeKeyboardLayout(RectangleF)BaseVirtualKeyboardLayout.FindRowByKey(IKey)BaseVirtualKeyboardLayout.KeyLayoutModeRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.CreateChildElements()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnLoaded()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.OnParentChanged(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.HitTest(Point)RadElement.OnRenderSizeChanged(SizeChangedInfo)RadElement.OnChildDesiredSizeChanged(RadElement)RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)RadElement.ArrangeCore(RectangleF)RadElement.MeasureCore(SizeF)RadElement.ShouldMeasureChild(RadElement)RadElement.MeasureChildren(SizeF)RadElement.GetArrangeRect(RectangleF)RadElement.CanExecuteLayoutOperation()RadElement.CalcLayoutOffset(PointF)RadElement.LockBounds()RadElement.UnlockBounds()RadElement.SetBoundsCore(Rectangle)RadElement.IsInValidState(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintElement(IGraphics, float, SizeF)RadElement.PaintElementSkin(IGraphics)RadElement.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadElement.PrePaintElement(IGraphics)RadElement.PostPaintElement(IGraphics)RadElement.PaintBackgroundShape(IGraphics)RadElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)RadElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Color, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.GetClipRect()RadElement.ShouldPaintChild(RadElement)RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetXPVisualStyle()RadElement.GetVistaVisualStyle()RadElement.InitializeSystemSkinPaint()RadElement.UnitializeSystemSkinPaint()RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.GetStylablePropertiesFilter()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.OnStyleChanged(RadPropertyChangedEventArgs)RadElement.UnapplyStyle()RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RadElement.RemoveBehaviors(PropertyChangeBehavior)RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)RadElement.GetThemeEffectiveType()RadElement.GetChildrenByType(Type)RadElement.GetChildrenByBaseType(Type)RadElement.FindAncestorByThemeEffectiveType(Type)RadElement.FindAncestor<T>()RadElement.IsAncestorOf(RadElement)RadElement.FindDescendant<T>()RadElement.FindDescendant(Predicate<RadElement>)RadElement.FindDescendant(Type)RadElement.EnumDescendants(TreeTraversalMode)RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.EnumDescendants(Filter, TreeTraversalMode)RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.GetDescendants(Filter, TreeTraversalMode)RadElement.GetAncestors(Filter)RadElement.GetAncestors(Predicate<RadElement>)RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)RadElement.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadElement.OnTunnelEvent(RadElement, RoutedEventArgs)RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)RadElement.IsEventInProcess(RaisedRoutedEvent)RadElement.RegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, string)RadElement.GetRegisterRoutedEvent(string)RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)RadElement.GetChildren(ChildrenListOptions)RadElement.SendToBack()RadElement.BringToFront()RadElement.IsChildOf(RadElement)RadElement.Focus()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseMove(MouseEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnMouseDown(MouseEventArgs)RadElement.OnMouseUp(MouseEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnClick(EventArgs)RadElement.OnDoubleClick(EventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.OnMouseLeave(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.DoMouseWheel(MouseEventArgs)RadElement.DoClick(EventArgs)RadElement.DoDoubleClick(EventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(MouseEventArgs)RadElement.DoMouseMove(MouseEventArgs)RadElement.ShowScreenTip(ScreenTipNeededEventArgs)RadElement.HideScreenTip()RadElement.DoMouseHover(EventArgs)RadElement.OnShowScreenTip(ComponentInputBehavior)RadElement.RaiseClick(EventArgs)RadElement.RaiseDoubleClick(EventArgs)RadElement.RaiseMouseWheel(MouseEventArgs)RadElement.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(EventArgs)RadElement.GetValue(RadProperty)RadElement.AddStylePropertySetting(IPropertySetting)RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource)RadElement.NotifyChildren(RadPropertyChangedEventArgs)RadElement.OnBoundsChanged(RadPropertyChangedEventArgs)RadElement.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.OnPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadElement.ToString()RadElement.DisposeManagedResources()RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetClientRectangle(SizeF)RadElement.GetBorderThickness(BorderPrimitive)RadElement.DpiScaleChanged(SizeF)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.CanHaveOwnStyleRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.ShouldHandleMouseInputRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.ToolTipTextRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

VirtualKeyboardLayout()

Initializes new instance of the VirtualKeyboardLayout class.

Declaration

cs-api-definition
public VirtualKeyboardLayout()

Properties

KeySpacing

Gets or sets the logical spacing between keys.

Declaration

cs-api-definition
public double KeySpacing { get; set; }

Property Value

double

Rows

Gets the logical rows collection.

Declaration

cs-api-definition
public ObservableCollection<Row> Rows { get; }

Property Value

ObservableCollection<Row>

TotalColumnsCount

Gets the total number of logical columns.

Declaration

cs-api-definition
public override double TotalColumnsCount { get; }

Property Value

double

Overrides BaseVirtualKeyboardLayout.TotalColumnsCount

TotalRowsCount

Gets the total number of logical rows.

Declaration

cs-api-definition
public override double TotalRowsCount { get; }

Property Value

double

Overrides BaseVirtualKeyboardLayout.TotalRowsCount

Methods

AddEmptySpace(double, double)

Adds an empty space to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual void AddEmptySpace(double width = 1, double height = 1)

Parameters

width

double

The logical width of the empty space.

height

double

The logical height of the empty space.

AddKey(IKey)

Adds a IKey instance to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddKey(IKey key)

Parameters

key

IKey

The key to be added.

Returns

IKey

The added key.

AddKey(Key)

Adds a Key instance to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddKey(Key key)

Parameters

key

Key

The key to be added.

Returns

IKey

The added key.

AddKey(Keys, KeyType, double, double, bool, bool)

Adds a key to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddKey(Keys key, KeyType keyType, double width = 1, double height = 1, bool isSharpStyle = false, bool showSecondaryText = false)

Parameters

key

Keys

The key.

keyType

KeyType

The type of the key.

width

double

The logical width of key.

height

double

The logical height of key.

isSharpStyle

bool

Indicates whether the key has more noticeable(sharp) style.

showSecondaryText

bool

Indicates whether to show the secondary text element.

Returns

IKey

The added key.

AddKey(ToggleKey)

Adds a ToggleKey instance to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddKey(ToggleKey key)

Parameters

key

ToggleKey

The toggle key to be added.

Returns

IKey

The added key.

AddKey(int, KeyType, double, double, bool, bool)

Adds a key to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddKey(int virtualKeyCode, KeyType keyType, double width = 1, double height = 1, bool isSharpStyle = false, bool showSecondaryText = false)

Parameters

virtualKeyCode

int

The virtual key code.

keyType

KeyType

The type of the key.

width

double

The logical width of key.

height

double

The logical height of key.

isSharpStyle

bool

Indicates whether the key has more noticeable(sharp) style.

showSecondaryText

bool

Indicates whether to show the secondary text element.

Returns

IKey

The added key.

AddKeyInternal(IKey)

Add a key to the VirtualKeyboardLayout.

Declaration

cs-api-definition
protected virtual IKey AddKeyInternal(IKey key)

Parameters

key

IKey

The key to be added.

Returns

IKey

Exceptions

ArgumentException

If the key does not inherit from RadItem.

AddNewLine()

Adds a new line.

Declaration

cs-api-definition
public virtual void AddNewLine()

AddNumpadKey(Keys, string, Keys, string, double, double, bool, Font, Font)

Adds a numpad key to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddNumpadKey(Keys numLockActiveKeyCode, string activeKeyText, Keys alternateKeyCode, string alternateKeyText, double width = 1, double height = 1, bool sharpStyle = false, Font activeKeyFont = null, Font alternateKeyFont = null)

Parameters

numLockActiveKeyCode

Keys

The virtual key code of active state.

activeKeyText

string

The text in active state.

alternateKeyCode

Keys

The virtual key code in alternate mode.

alternateKeyText

string

The text in alternate state.

width

double

The logical width of key.

height

double

The logical height of key.

sharpStyle

bool

Indicates whether the key has more noticeable(sharp) style.

activeKeyFont

Font

The font specified to the key element in active state.

alternateKeyFont

Font

The font specified to the key element in alternate state.

Returns

IKey

The added key.

AddSpecialKey(Keys, string, KeyType, double, double, bool, Font)

Adds a special key to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddSpecialKey(Keys key, string displayText, KeyType keyType, double width = 1, double height = 1, bool isSharpStyle = false, Font font = null)

Parameters

key

Keys

The key.

displayText

string

The display text.

keyType

KeyType

The type of the key.

width

double

The logical width of key.

height

double

The logical height of key.

isSharpStyle

bool

Indicates whether the key has more noticeable(sharp) style.

font

Font

The font specified to the key element.

Returns

IKey

The added key.

AddSpecialKey(int, string, KeyType, double, double, bool, Font)

Adds a spacial key to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddSpecialKey(int virtualKeyCode, string displayText, KeyType keyType, double width = 1, double height = 1, bool isSharpStyle = false, Font font = null)

Parameters

virtualKeyCode

int

The virtual key code.

displayText

string

The display text.

keyType

KeyType

The type of the key.

width

double

The logical width of key.

height

double

The logical height of key.

isSharpStyle

bool

Indicates whether the key has more noticeable(sharp) style.

font

Font

The font specified to the key element.

Returns

IKey

The added key.

AddToggleKey(Keys, string, KeyType, double, double, bool)

Adds a toggle key to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddToggleKey(Keys key, string displayText, KeyType keyType, double width = 1, double height = 1, bool isSharpStyle = false)

Parameters

key

Keys

The key.

displayText

string

The display text.

keyType

KeyType

The type of the key.

width

double

The logical width of key.

height

double

The logical height of key.

isSharpStyle

bool

Indicates whether the key has more noticeable(sharp) style.

Returns

IKey

The added key.

AddToggleKey(int, string, KeyType, double, double, bool)

Adds a toggle key to the rows and children of VirtualKeyboardLayout.

Declaration

cs-api-definition
public virtual IKey AddToggleKey(int virtualKeyCode, string displayText, KeyType keyType, double width = 1, double height = 1, bool isSharpStyle = false)

Parameters

virtualKeyCode

int

The virtual key code.

displayText

string

The display text.

keyType

KeyType

The type of the key.

width

double

The logical width of key.

height

double

The logical height of key.

isSharpStyle

bool

Indicates whether the key has more noticeable(sharp) style.

Returns

IKey

The added key.

ArrangeOverride(SizeF)

Arranges the VirtualKeyboardLayout to its final location. The element must call the Arrange method of each of its children.

Declaration

cs-api-definition
protected override SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

The size that is available for element.

Returns

SizeF

The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.

Overrides RadElement.ArrangeOverride(SizeF)

Remarks

In this method call to the Arrange method of each child must be made.

CreateDefaultNumpadLayout()

Creates a new instance of the VirtualKeyboardLayout class with added buttons for the default numpad keyboard group.

Declaration

cs-api-definition
public static VirtualKeyboardLayout CreateDefaultNumpadLayout()

Returns

VirtualKeyboardLayout

The created instance.

CreateExtendedKeyboardLayoutPanel(bool)

Creates a new instance of the VirtualKeyboardLayoutPanel class with added buttons for extended keyboard layout.

Declaration

cs-api-definition
public static VirtualKeyboardLayoutPanel CreateExtendedKeyboardLayoutPanel(bool includeFunctionKeys = true)

Parameters

includeFunctionKeys

bool

A value indicating whether to include the function keys.

Returns

VirtualKeyboardLayoutPanel

CreateFKeysLayout(bool)

Creates a new instance of the VirtualKeyboardLayout class with added buttons for the function buttons keyboard group.

Declaration

cs-api-definition
public static VirtualKeyboardLayout CreateFKeysLayout(bool addEscapeKey = true)

Parameters

addEscapeKey

bool

A value indicating whether to include the escape key.

Returns

VirtualKeyboardLayout

The created instance.

CreateHomeGroupLayout(bool)

Creates a new instance of the VirtualKeyboardLayout class with added buttons for the home buttons keyboard group.

Declaration

cs-api-definition
public static VirtualKeyboardLayout CreateHomeGroupLayout(bool addArrowKeys = true)

Parameters

addArrowKeys

bool

A value indicating whether to include the arrow keys.

Returns

VirtualKeyboardLayout

The created instance.

CreateKeyFactory()

Creates a new object used for KeyFactory.

Declaration

cs-api-definition
protected virtual IKeyFactory CreateKeyFactory()

Returns

IKeyFactory

The new instance.

CreateMainButtonsKeyboardLayout(bool, bool)

Creates a new instance of the VirtualKeyboardLayout class with added buttons for the main buttons keyboard group.

Declaration

cs-api-definition
public static VirtualKeyboardLayout CreateMainButtonsKeyboardLayout(bool addEscapeKey = true, bool addArrowKeys = false)

Parameters

addEscapeKey

bool

A value indicating whether to include the escape key on the first row.

addArrowKeys

bool

A value indicating whether to include the arrow keys.

Returns

VirtualKeyboardLayout

The created instance.

CreateToggleKeyFactory()

Creates a new object used for ToggleKeyFactory.

Declaration

cs-api-definition
protected virtual IKeyFactory CreateToggleKeyFactory()

Returns

IKeyFactory

The new instance.

CreateTraditionalNumpadLayout()

Creates a new instance of the VirtualKeyboardLayout class with added buttons for the traditional numpad keyboard group.

Declaration

cs-api-definition
public static VirtualKeyboardLayout CreateTraditionalNumpadLayout()

Returns

VirtualKeyboardLayout

The created instance.

GetAllKeys()

Gets a list with all IKey instances in this object and its children.

Declaration

cs-api-definition
public override IList<IKey> GetAllKeys()

Returns

IList<IKey>

The IList with all keys.

Overrides BaseVirtualKeyboardLayout.GetAllKeys()

GetAllRows()

Gets a list with all Row instances in this object and its children.

Declaration

cs-api-definition
public override IList<Row> GetAllRows()

Returns

IList<Row>

The IList with all rows.

Overrides BaseVirtualKeyboardLayout.GetAllRows()

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

cs-api-definition
protected override void InitializeFields()

Overrides BaseVirtualKeyboardLayout.InitializeFields()

MeasureOverride(SizeF)

Measures the space required by the VirtualKeyboardLayout

Used by the layout system.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The size that is available to the VirtualKeyboardLayout. The available size can be infinity (to take the full size of the element)

Returns

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Overrides RadElement.MeasureOverride(SizeF)

Remarks

In this method call to the Measure method of each child must be made.

ResetLayout()

Resets the logical layout. When VirtualKeyboardLayoutPanels, VirtualKeyboardLayout and/or IKeys are added, removed or changed, this method needs to be called to refresh and update the logical layout.

Declaration

cs-api-definition
public override void ResetLayout()

Overrides BaseVirtualKeyboardLayout.ResetLayout()

ShouldArrangeChild(RadElement)

Gets a value indicating, whether a child will be arranged during the ArrangeOverride.

Declaration

cs-api-definition
protected override bool ShouldArrangeChild(RadElement child)

Parameters

child

RadElement

The child.

Returns

bool

Whether the child will be arranged in ArrangeOverride.

Overrides RadElement.ShouldArrangeChild(RadElement)

UpdateKeysLayout()

Updates the logical bounds of keys.

Declaration

cs-api-definition
public void UpdateKeysLayout()