Skip to content

Beregoz/WPF-Virtual-KeyPad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF-Virtual-KeyPad

Virtual key pad in WPF

Reference the lib in your project and use by attaching the control like this:

<TextBox virtualKeyPad:VirtualKeyPad.Mode="Touch" />

To add new buttons to the template just edit/override the template at Themes/generic.xaml

<Button CommandParameter="{x:Static Key.NumPad2}">
    <TextBlock Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}, Path=CommandParameter, Converter={StaticResource KeyToCharConverter}}"/>
</Button>

This would result in "NumPad 2".

All available characters can be found in System.Windows.Input.Key

About

Virtual key pad in WPF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages