[英]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.