有没有办法改变 wpf 或 telerik 中的当前日历控件?我正在我的应用程序中进行翻译。当我将语言更改为日语时,有没有办法包含日语日历控件而不是英语日历控件。
最佳答案
设置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>
输出
关于c# - 更改 WPF 中的日历控件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23192268/