Questions tagged [textcompositionmanager]

4 questions
8
votes
1 answer

Help with the WPF TextCompositionManager events

The docs on this are pretty shoddy. There are a number of events you can hook into to monitor and take control of text input that are accessed via the TextCompositionManager. If you're wanting to do something like snag card swipe data, this is…
user1228
6
votes
1 answer

How can I prevent input controls from stealing the space character from the TextCompositionManager?

Related (but not a dupe!) to this question: Help with the WPF TextCompositionManager events When using the TextCompositionManager I'm having an issue where, if an input control such as the TextBox has focus, the TextBox will "steal" the space…
user1228
3
votes
2 answers

Convert received keys in PreviewKeyDown to a string

I am using PreviewKeyDown event on a window to receive all the keys from a barcode scanner. The KeyEventArgs is an enumeration and does not given me the actual string. I dont want to use TextInput as some of the keys may get handled by the control…
RRR
  • 575
  • 1
  • 11
  • 25
2
votes
0 answers

Determine the corresponding character for a virtual key (using asian IME). .Net

How can I get the the character (a char or string) given a virtual key, or virtual key combination (System.Windows.Input.Key or System.Windows.Input.KeyGesture)? I'm using an asian IME and I want to determine the asian character, or partial…
Verax
  • 2,409
  • 5
  • 27
  • 42