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
405
Format problem
posted

Hello, I have a numeric editor in my Window:

<igEditors:XamNumericEditor Name="test1" Text="{Binding Path=SelectedItem.Value1, ElementName=lbFound}" Width="85" HorizontalAlignment="Left" VerticalContentAlignment="Center" SpinButtonDisplayMode="OnlyInEditMode" IsReadOnly="False" Padding="3,0" DataMode="Raw" DisplayMode="Raw" Mask="nnnn.nnn" SpinIncrement="1" InvalidValueBehavior="DisplayErrorMessage" IsAlwaysInEditMode="False" IsInEditMode="False" IsManipulationEnabled="False" Format="" PromptChar="" />

 The Value1 is decimal (4.3)

The value (123,45) is displayed correct as 123,45. Then I go to edit the value by 1 to 124,45.

This edits my Value1 Property of the class, but the given value which is viewed at a breakpoint is "1244500M" this is not what I expect I would expect "124,45".

Can anybody help on this?

 

Parents
No Data
Reply
  • 5600
    Verified Answer
    Offline posted

    Hello,

    Try to bind your value to xamNumeric's Value property instead of Text.

    Also remove Format="" and set ValyeType to decimal like:

    ValueType="{x:Type sys:Decimal}", where sys is xmlns:sys="clr-namespace:System;assembly=mscorlib". 

    Hoper this helps you.

    Regards,

    Anastas 

Children
No Data