c# - 更改 WPF 中的日历控件

标签 c# wpf telerik calendar-control

有没有办法改变 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>

输出

enter image description here

关于c# - 更改 WPF 中的日历控件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23192268/

相关文章:

c# - 为什么 int 和 uint 比较在一种情况下失败,而在另一种情况下却没有?

c# - 读取大型文本文件(超过 400 万行)并在 .NET 中解析每一行

css - 字体系列应用于 iphone 模拟器但未应用于真正的 iphone 设备?

c# - 如何使用 Math.Max、Math.Min 找到三个最大和三个最小的小数

c# - 如何为简单的 API 设计跨语言 RPC 协议(protocol)?

c# - 有什么方法可以检测 .NET 中的 RTL 语言吗?

wpf - 是否有使用 Expression Blend 可以做而使用常规 WPF 不能做的事情?

c# - 如何在 WPF 中启动时打开两个窗口?

css - Telerik Grid 表格宽度溢出父 div

c# - 启用/禁用按钮