I am using two different currencies in my software. Depending on company origin how can I show the currency before numerical data. Either £ or €
<TextBlock Text="{Binding FNetPriceAfterDisc,StringFormat=c}" />
I would like to Bind "c" in code behind. If possible.
I tried this but doesn't work. Not sure what's wrong.
<TextBlock HorizontalAlignment="Center" >
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Text" Value="{Binding FNetPriceAfterDisc,StringFormat=€0.000}" />
<Style.Triggers>
<DataTrigger Binding="{Binding Country}" Value="UK">
<Setter Property="Text" Value="{Binding FNetPriceAfterDisc,StringFormat=c}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>