Posted 14 years ago
by Marcel Konnegen
Version: 10.1.0523
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Hello Support,
we have encountered the following problem during our development. Inside a TextChanged-event handler, we triger an operation that itself changes the Text of the MaskedTextBox. However, this change does not get reflected in the WPF UI. We can confirm, that the value gets set correctly, by inspecting new- and oldValue of the EventArgs. The following little example shall show you the problem.
1) Setting the value to 1.
1a) The TextChanged event triggers the setting of the value to 99999
1b) The GUI still shows 1, even though, the TextChanged event did show 1 as old- and 99999 as newValue.
Even stranger...when we now change the text from 1 to e.g. 12, then the EventArgs of the TextChanged event will show 99999 as old- and 12 as newValue.
We hope you can help us quickly.
Thanks in advance
Marcel
we have encountered the following problem during our development. Inside a TextChanged-event handler, we triger an operation that itself changes the Text of the MaskedTextBox. However, this change does not get reflected in the WPF UI. We can confirm, that the value gets set correctly, by inspecting new- and oldValue of the EventArgs. The following little example shall show you the problem.
1) Setting the value to 1.
1a) The TextChanged event triggers the setting of the value to 99999
1b) The GUI still shows 1, even though, the TextChanged event did show 1 as old- and 99999 as newValue.
Even stranger...when we now change the text from 1 to e.g. 12, then the EventArgs of the TextChanged event will show 99999 as old- and 12 as newValue.
We hope you can help us quickly.
Thanks in advance
Marcel