I need to use a XamCurrencyEditor with multiple currency value. For example while screen have to display USD account currencyeditor will display 987,00 USD and while screen display Turkish Lira (TL) Account in the same currencyeditor, it will display 1.325,00 TL. Our clients regional settings language property is tr-TR. Could you help me please ?
I'm not sure what exactly you are asking for. The control cannot convert the value as it wouldn't have any notion of the exchange rate or what denomination the source value is. You would probably have to put a converter on your binding and manipulate the value. With regards to the currency symbols used, you could change the Language property or FormatProvider properties.
Ok, I will try to explain more. there is not any exchange process and I dont need to know exchange rate I want to display USD or TL or EURO near decimal value into a CurrencyEditor when I want.
For Example:
<Window x:Class="WpfApplication2.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:igEditors="http://infragistics.com/Editors"
Title="Window1" Height="300" Width="300">
<Grid>
<igEditors:XamCurrencyEditor Value="1000" Language="tr-TR" Height="30"></igEditors:XamCurrencyEditor>
</Grid>
</Window>
will show 1.000,00 TL
<igEditors:XamCurrencyEditor Value="1000" Language="en-US" Height="30"></igEditors:XamCurrencyEditor>
will show $1,000.00
I want to like below
<igEditors:XamCurrencyEditor Value="1000" Currency="USD" Height="30"></igEditors:XamCurrencyEditor>
must show 1.000.00 USD
<igEditors:XamCurrencyEditor Value="1000" Currency="TL" Height="30"></igEditors:XamCurrencyEditor>
must show 1.000,00 TL
How can I apply?
<
Sorry I want to like below
must show 1.000,00 USD
Ultimately if you want literals in the display then you're going to have to set the mask property. E.g. You can set the mask to "{}{double:6.2} \U\S\D" (excluding the leading {} if you're not doing this in xaml as that is just an escape for xaml to know that the value is not a markup extension). Note the mask will not be used when not in edit mode so you would either set the IsAlwaysInEditMode to true or you could set the format property to a custom format string - e.g. "###,###.00 USD". You can refer to MS' documentation on format strings (like this one on custom numeric format strings) and our documentation on the mask characters.