繁体   English   中英

在WPF中更改日历控件

[英]change the calendar control in WPF

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

输出量

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM