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
I have two xceed integer updown controls and a save button as shown below.

<extWPF:IntegerUpDown Name="iudExpectedRevenue" Text="{Binding ExpectedRevenue}" Minimum="1" Increment="1" Maximum="250" DisplayDefaultValueOnEmptyText="True" ClipValueToMinMax="True" DefaultValue="1" />

<extWPF:IntegerUpDown Name="iudExpectedPageValue" />

<Button Name="btnSave" Command="{Binding AddJobCommand}" />

If i delete the value from the first integerupdown and click on second integerupdown the value in the firstintegerupdown shows defaultvalue "1" which is correct.
If i delete the value from the first integerupdown and directly click on save the value will be shown as blank in the Control instead of defaultvalue "1".

This is happenening due to control built in property DisplayDefaultValueOnEmptyText="True" which is happening only when i click on other control.I want to ensure that the integerupdown shows correct value before user clicks on save.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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