Quantcast
Channel: 2,000 Things You Should Know About WPF » TextChanged
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

#633 – TextChanged Event Fires After TextBox Text Has Changed

You can intercept the PreviewKeyDown event for a TextBox to look at each key pressed while the TextBox has focus.  You can also intercept the PreviewTextInput event to look at text that is being...

View Article



Image may be NSFW.
Clik here to view.

#634 – Modifying Text in the TextChanged Event

Text-based controls like TextBox fire the TextChanged to indicate that their text has changed.  You can use this event to make changes to text being entered by the user, for example to convert all...

View Article

Image may be NSFW.
Clik here to view.

#635 – Using a Value Converter to Change User Input

Instead of modifying user input by handling the TextChanged event, you can use a value converter to change the text input.  Below, we bind the Text property of a TextBox to a string property and...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images