投稿

5月, 2021の投稿を表示しています

WPFの地域設定

イメージ
Thread.CurrentCultureはOSの地域設定から自動で設定されるが、XmlLanguageはOSの既定の設定によらずen-US固定のようです。 例えば、以下のようにXAMLで画面を作ると、 < Window x:Class = "WPF.MainWindow"          xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"          xmlns:x = "http://schemas.microsoft.com/winfx/2006/xaml"          xmlns:d = "http://schemas.microsoft.com/expression/blend/2008"          xmlns:mc = "http://schemas.openxmlformats.org/markup-compatibility/2006"          xmlns:local = "clr-namespace:WPF"          mc:Ignorable = "d"          Title = "MainWindow" Height = "450" Width = "800" >      < Grid >          < Grid.ColumnDefinitions >     ...