WPF在标题上进行数字替换

时间:2016-05-26 14:44:44

标签: xaml

当我创建一个简单的WPF应用程序,其标题为“4More”时,例如,当在英文版Windows上运行时,文本将保持为“4More”。当我在阿拉伯语版本的Windows上运行它时,它仍然是“4More”。然而,当我将流向改为RTL并在阿拉伯语上运行时,它开始进行数字替换,将欧洲4改为阿拉伯语4(4)。我希望能够控制窗口标题的数字替换。

我已将NumberSubstitution.Substitution =“European”应用到窗口上,但它没有任何区别。

这是我的XAML代码:

<Window x:Class="TestTitle.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TestTitle"
mc:Ignorable="d"
Title="4More"
Height="350"
Width="525"
FlowDirection="RightToLeft"
NumberSubstitution.Substitution="European">
    <Grid>
    </Grid>
</Window>

我需要做些什么才能让它在标题中显示欧洲第4位?

0 个答案:

没有答案