This is a component for WPF applications
It works under .Net Framework 4
How to use
Getting started
Use nuget console
PM> Install-Package WPFTouchKeyboard
Add namespace to your xaml application
XAML
Edit|Remove
xaml xmlns:TermControls="clr-namespace:TermControls;assembly=TermControls"
xmlns:TermControls="clr-namespace:TermControls;assembly=TermControls"
Then use it like
XAML
Edit|Remove
xaml <TermControls:OnScreenKeyboard />
<TermControls:OnScreenKeyboard />
Binding
Also you can bind textbox or others component to this control via standard binding
XAML
Edit|Remove
xaml <TextBox Text="{Binding Text, ElementName=onScreenKeyboard}" Name="textBox1" />
<TextBox Text="{Binding Text, ElementName=onScreenKeyboard}" Name="textBox1" />
How to use handle EnterKeyPress
XAML
Edit|Remove
xaml <TermControls:OnScreenKeyboard x:Name="onScreenKeyboard" Command="{Binding ButtonClickCommand,ElementName=m}" />
<TermControls:OnScreenKeyboard x:Name="onScreenKeyboard" Command="{Binding ButtonClickCommand,ElementName=m}" />
where m
is name of MainWindow
And now add
C#
Edit|Remove
csharp public ICommand ButtonClickCommand { get { return new DelegateCommand(ButtonClick); } } private void ButtonClick(object param) { System.Windows.MessageBox.Show("EnterClick!"); }
public ICommand ButtonClickCommand { get { return new DelegateCommand(ButtonClick); } } private void ButtonClick(object param) { System.Windows.MessageBox.Show("EnterClick!"); }