TextBoxChanged in WP7 always firing twice per change

And it is annoying when you want to implement a custom validation for a simple control. So what is the problem and remedy for it?

Problem: Template for TextBox in WP7 contains… two TextBoxes. One for the enabled state and the other one for disabled / read only state.

Remedy: If you really know that you won’t be using other states than enabled state you can simply remove DisabledOrReadonlyBorder and all code that using this border. For a second option you can change the second TextBox with e.g. an Rectangle and fill it with some semitransparent brush.

Advertisements

0 Responses to “TextBoxChanged in WP7 always firing twice per change”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: