I have got two different currency £ and €
I can't use StringFormat={}{0:C0} this because this only shows £ every time.
<TextBox Text="{Binding MinAmount, StringFormat={}{0:C0}.00}" />
I have got Country property "UK or "EURO" But how am i going to use if statement to change the currency symbol before display it please?
<GridViewColumn.CellTemplate>
<DataTemplate>
<StackPanel >
<TextBox Text="{Binding MinAmount}" Width="105" VerticalContentAlignment="Center" HorizontalContentAlignment="Right">
<TextBox.Style>
<Style TargetType="TextBox">
<Style.Triggers>
<DataTrigger Binding="{Binding CurrencyForSelectedCompany}" Value="UK">
<Setter Property="Language" Value="en-GB" />
</DataTrigger>
<DataTrigger Binding="{Binding CurrencyForSelectedCompany}" Value="EIRE">
<Setter Property="Language" Value="fr-FR" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBox.Style>
</TextBox>
</StackPanel>
</DataTemplate>
I put this textbox to make sure trigger checks the correct data
<TextBox Text="{Binding CurrencyForSelectedCompany}" Width="100" />
But somehow UK or FR doesn't activate trigger