RadVirtualKeyboard
Represents a virtual keyboard control that allows for customizable keyboard layouts and sound effects for key presses. The RadVirtualKeyboard supports various keyboard layouts, synchronization with system culture settings, and can handle sound playback for key presses.
This control includes properties such as VirtualKeyboardTemplateSelector for customizing key templates, Culture for setting the keyboard's culture-specific language, and IsKeyPressSoundEnabled to enable or disable sound effects when keys are pressed.
The virtual keyboard can load its layout from an XML description, which allows for dynamic key arrangements, and provides methods to reset themes and manage keyboard states (e.g., Caps Lock, Num Lock). Additionally, it implements IDisposable for resource management.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
[TelerikToolboxCategory("Navigation")]
public class RadVirtualKeyboard : Control, IDisposable
Inheritance: objectRadVirtualKeyboard
Implements:
Constructors
Initializes a new instance of the RadVirtualKeyboard class.
public RadVirtualKeyboard()
Fields
CultureProperty
DependencyProperty
Identifies the Culture dependency property.
public static readonly DependencyProperty CultureProperty
DefaultKeyboardLayoutProperty
DependencyProperty
Identifies the DefaultKeyboardLayout dependency property.
public static readonly DependencyProperty DefaultKeyboardLayoutProperty
IsKeyPressSoundEnabledProperty
DependencyProperty
Identifies the IsKeyPressSoundEnabled dependency property.
public static readonly DependencyProperty IsKeyPressSoundEnabledProperty
SynchronizeCultureWithSystemProperty
DependencyProperty
Identifies the SynchronizeCultureWithSystem dependency property.
public static readonly DependencyProperty SynchronizeCultureWithSystemProperty
VirtualKeyboardTemplateSelectorProperty
DependencyProperty
Identifies the VirtualKeyboardTemplateSelector dependency property.
public static readonly DependencyProperty VirtualKeyboardTemplateSelectorProperty
Properties
Gets or sets the culture to be displayed in the keyboard.
public CultureInfo Culture { get; set; }
Gets or sets one of the default keyboard layouts.
public DefaultKeyboardLayout DefaultKeyboardLayout { get; set; }
Gets or sets whether pressing a key will also produce a sound.
public bool IsKeyPressSoundEnabled { get; set; }
Gets or sets the factory used for creation of key view models.
public IKeyViewModelFactory KeyFactory { get; set; }
Gets or sets the player to play sounds when a key is pressed.
public IKeySoundPlayer KeySoundPlayer { get; set; }
Gets or sets a value indicating whether the component should track the systems culture and adjust the keys accordingly.
public bool SynchronizeCultureWithSystem { get; set; }
Gets or sets the template selector used for creating visual elements for keys.
public VirtualKeyboardTemplateSelector VirtualKeyboardTemplateSelector { get; set; }
Methods
Releases all resources used by the RadVirtualKeyboard.
public void Dispose()
Implements:
After calling this method, the RadVirtualKeyboard object can no longer be used. Ensure to call this method to free up any unmanaged resources.
protected override void Finalize()
Loads an xml containing a description of a virtual keyboard's layout.
Loads an xml containing a description of a virtual keyboard's layout or the default layout.
public void LoadLayout(string filename)
The file to load the layout from. Set this to null to load the default layout.
Called when the template for the RadVirtualKeyboard is applied. This method is responsible for initializing any template-specific behavior and components.
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Resets the theme.
public void ResetTheme()