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" />
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
I really appreciate your help the above solution worked, but my bound data isn't displaying in the control and it has a value. Once again the value in MarketValueAmount which is bound to the grid is (decimal?). The data dispplays formatted in a plain textbox when I test it with another control.
="1"
="IncludeBoth"
="LostFocus"
="5,0,0,0" />
<ig:XamNumericEditor Grid.Row="6" Grid.Column
PromptChar="0" DisplayMode
ValidationMode
Mask="{}{double:8.2}"
Style="{StaticResource StandardTextbox}"
Margin
Sorry, but I seem to have misled you.I have not noticed that you were trying to get 'CurrencyEditor'.
At this point both out editors(MaskedEditor and NumericEditor) do not support "currency symbol" with the value.
To display a data in control(without currency amount) you shoul do:
Value="{Binding Path=MarketValueAmount, Mode=TwoWay}"Where 'MarketValueAmount' should be Double value.
Are there any other alternatives to this?