有没有办法更改 wpf 或 Telerik 中的当前日历控件?我正在我的应用程序中进行翻译。当我将语言更改为日语时,有没有办法包含日语日历控件而不是英语日历控件。
问问题
1615 次
1 回答
13
设置FrameworkElement.Language
控件的属性或将 xml:lang 属性应用于控件的 XAML。您必须设置的值是xml:lang="ja-JP".
来自msdn CultureInfo
例如,
XAML:
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xml:lang="ja-JP"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Calendar />
</Grid>
</Window>
输出
于 2014-04-21T06:58:30.670 回答