I think this is a super basic question but I can't get it running. I want to show a fixed number inside my WPF View without a binding. This number is 0.001 or in german 0,001. See the seperator. Now if i switch the UIs language, the number seperator should be updated to the correct one of the language.
<TextBlock>
<Run Text="0.001" />
<Run Text=" " />
...
</TextBlock>
This should be extremly trivial and I think StringFormat should fit the needs, but as I said, i can't get it working. Thanks for your help
Solution: Thanks to @Corentin Pane pointing me to the solution. As he said, I need to declare the value
<TextBlock>
<TextBlock.Resources>
<system:Double x:Key="MinValue">0.001</system:Double>
</TextBlock.Resources>
<Run Text="{Binding Source={StaticResource MinValue}, Mode=OneTime, StringFormat='N3', ConverterCulture={x:Static gl:CultureInfo.CurrentCulture}}" />
<Run Text=" " />
...
</TextBlock>