Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Closed Issue: Too frequent updates of UpDownBase [19303]

$
0
0
When typing into NumericUpDown or any other UpDownBase-derived class the underlying (i.e. data bound) value will be updated too frequently causing too many updates and potentially interfering with higher-order parser logic.

Fix:
Change the call inside the UpDownBase class:
```
protected override void OnTextChanged( string oldValue, string newValue )
{
if( this.IsInitialized )
{
SyncTextAndValueProperties( true, Text );
}
}
```
to
```
SyncTextAndValueProperties( false, Text );
```
The underlying value will be still updated on pressing Enter or one of the Up/Down buttons or when leaving the TextBox.
Comments: Fixed.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>