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
449
how to show default value for XamNumericEditor
posted

 

 

 

I have something like this:

<igEditor:XamNumericEditor x:Name="TextBox" Value="{Binding Length, Mode=TwoWay}" ValueType="{x:Type system:Decimal}" Margin="0,5,2.13,0" Mask="{}nn" PromptChar=" " Height="22.5" Grid.Column="1" Grid.Row="2" d:LayoutOverrides="Width" Template="{DynamicResource XamNumericEditorTemplate}" Style="{DynamicResource XamMaskedEditorLikeTextBoxTemplate}"/>

the textbox (xamnumericeditor) shows empty when no user input. I want it to show 0 as a default value. Any tricks?

Thanks,

Joan