WPF Textbox Preview events related

Posted by Nitin Chaudhari on Stack Overflow See other posts from Stack Overflow or by Nitin Chaudhari
Published on 2010-06-09T07:06:33Z Indexed on 2010/06/09 7:12 UTC
Read the original article Hit count: 272

Filed under:
|
|
|

I have a WPF textbox, and perform the following actions

  1. Enter text as "12345"
  2. Move cursor between 3 and 4 (using arrow or mouseclick)
  3. Enter 0 (so Text is now "123045")

Which event/eventargs can tell me that 0 was typed at location 4. I need to know this at Preview level so that I can reject the character 0 based on the prefixed and suffixed digits.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about textbox