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
315
New to XamMaskedEditor
posted

Hey All,

I am trying to setup the XamMaskedEditor with credentials below but it fails the datatype that I have bound to the control is decimal?(nullable deciaml type) can you please tell me what im doing wrong?

<ig:XamMaskedEditor Grid.Row="6" Grid.Column="1"

PromptChar="0" DisplayMode="IncludeBoth"

ValidationMode="LostFocus"

ValueType="System:Decimal"

Mask="{}{decimal:12.2}"

Text="{Binding Path=MarketValueAmount, Mode=TwoWay,StringFormat='{}{0:C}'}"

Style="{StaticResource StandardTextbox}" Margin="5,0,0,0" />

Parents
No Data
Reply
  • 495
    posted

    Hi MrJRema,

    You can resolve your problem by using <ig:XamNumricEditor> and Mask="{}{double:12.2}"

    I.e.:

    <ig:XamNumricEditor Grid.Row="6" Grid.Column="1"
                                             PromptChar="0" DisplayMode="IncludeBoth"
                                             ValidationMode="LostFocus"
                                             Mask="{}{double:12.2}" 
                                             Text="{Binding Path=MarketValueAmount, Mode=TwoWay,StringFormat='{}{0:C}'}"
                                             Style="{StaticResource StandardTextbox}"
                                             Margin="5,0,0,0" />

    Regards,
    Tania Vladimirova

Children