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

New Post: IntegerUpDown is setting the value to defaultvalue specified only when I click on some other control

$
0
0
Hi,

The defaultValue should be set only when focus is placed on another control so that if someone is removing the "Text" of the IntegerUpDown to write a new value, we don't want the defaultValue to show up in the middle of the process.

Here's a small test :
<Button Name="btnSave" 
              Content="SAVE"
              Click="btnSave_Click_1"/>

private void btnSave_Click_1( object sender, RoutedEventArgs e )
    {
      System.Diagnostics.Debug.WriteLine( "Saving iudExpectedRevenue at " + iudExpectedRevenue.Text );
    }
When clicking on the Save Button, the defaultValue is set to "iudExpectedRevenue" IntegerUpDown and the Click Button callback shows that "iudExpectedRevenue" IntegerUpDown "Text" value is correct at 1 (the defaultValue). So the correct default value would be saved.

Viewing all articles
Browse latest Browse all 4964

Latest Images

Trending Articles



Latest Images

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