Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1585
XamNumericEditor PlaceHolder Digits
posted

If I enter a value into a XamNumericEditor that has a mask of {double:4.2}, and I only enter the first four digits and I tab off it, why doesn't the control fill in the decimal places with 0's?

I just leaves and empty place... Any way to fix that? 

Parents
No Data
Reply
  • 9836
    Suggested Answer
    posted

    You can change the DisplayMode to IncludeBoth so it includes the PromtChar after exiting edit mode e.g.

    <ig:XamNumericEditor x:Name="xamNumericEditor1" Width="200" Height="30"  ValueType="System:Double" Mask="{}{double:4.2}" PromptChar="0" DisplayMode="IncludeBoth" />

    Hope that helps!

     

     

Children