【发布时间】:2014-06-05 05:09:35
【问题描述】:
有没有办法改变 wpf 或 Telerik 中的当前日历控件?我正在我的应用程序中进行翻译。当我将语言更改为日文时,有没有办法包含日文日历控件而不是英文。
【问题讨论】:
标签: c# wpf telerik calendar-control
有没有办法改变 wpf 或 Telerik 中的当前日历控件?我正在我的应用程序中进行翻译。当我将语言更改为日文时,有没有办法包含日文日历控件而不是英文。
【问题讨论】:
标签: c# wpf telerik calendar-control
设置控件的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>
输出
【讨论】: