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: 337
        
I have a WPF textbox, and perform the following actions
- Enter text as "12345"
- Move cursor between 3 and 4 (using arrow or mouseclick)
- 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