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 :
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.