textcompositionmanager

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 where you'd do it. There are three events that concern text input: TextInput, TextStart, an...

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

Related (but not a dupe!) to this question: http://stackoverflow.com/questions/1053210/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 character before I can get a chance to act on it. ...

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 itself and may not bubble up to the TextInput event. I am looking for a way to convert th...