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
345
XamMaskEditor is not binding to a decimal property on my business object.
posted

XamMaskEditor is not binding to a decimal property on my business object.  The Set property does not fire.
If I bind to a normal wpf textbox, the binding works.

Any ideas?  What am I doing wrong?

<igEditors:XamMaskedEditor x:Name="maskedEditor" Grid.Row ="8" Grid.Column="3" Width="100"
IsAlwaysInEditMode="True" DisplayMode="IncludeBoth"
Text="{Binding Path=Income,ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"
Mask="œnn,nnn,nnn.nn" />

Thanks,

Richard.

Parents
No Data
Reply
  • 345
    Suggested Answer
    posted

    Adding DataMode="Raw" seemed to work.

    <igEditors:XamMaskedEditor x:Name="maskedEditor" Grid.Row="8" Grid.Column="3" Width="100" IsAlwaysInEditMode="True"
    DisplayMode="IncludeBoth"
    Text="{Binding Income, Converter={StaticResource IdentityConverter}, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"
    DataMode="Raw" Mask="œnn,nnn,nnn.nn" />

Children
No Data