回答編集履歴

2

見直しキャンペーン中

2023/07/30 09:00

投稿

TN8001
TN8001

スコア10056

test CHANGED
@@ -1,5 +1,5 @@
1
- 普通の(素の)DatePickerは、何もしなくても日本語になると思います。
1
+ 普通の(素の)`DatePicker`は、何もしなくても日本語になると思います。
2
- ```xaml
2
+ ```xml
3
3
  <Window
4
4
  x:Class="Qs88bt90k25ufz4.MainWindow"
5
5
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
@@ -22,7 +22,7 @@
22
22
  .NET 6.0
23
23
  [NuGet Gallery | MaterialDesignThemes 4.5.0](https://www.nuget.org/packages/MaterialDesignThemes/4.5.0)
24
24
 
25
- ```xaml
25
+ ```xml
26
26
  <Window
27
27
  x:Class="Qs88bt90k25ufz4.MainWindow"
28
28
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
@@ -34,7 +34,7 @@
34
34
  </StackPanel>
35
35
  </Window>
36
36
  ```
37
- ```xaml
37
+ ```xml
38
38
  <Application
39
39
  x:Class="Qs88bt90k25ufz4.App"
40
40
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

1

誤解されそうな表現

2022/06/07 13:06

投稿

TN8001
TN8001

スコア10056

test CHANGED
@@ -1,5 +1,19 @@
1
- 普通のDatePickerは、何もしなくても日本語になると思います。
1
+ 普通の(素の)DatePickerは、何もしなくても日本語になると思います。
2
+ ```xaml
3
+ <Window
4
+ x:Class="Qs88bt90k25ufz4.MainWindow"
2
- [DatePicker - WPF .NET Framework | Microsoft Docs](https://docs.microsoft.com/ja-jp/dotnet/desktop/wpf/controls/datepicker)
5
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
6
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
7
+ Width="800"
8
+ Height="450">
9
+ <StackPanel>
10
+ <DatePicker />
11
+ </StackPanel>
12
+ </Window>
13
+ ```
14
+ ![アプリ画像](https://ddjkaamml8q8x.cloudfront.net/questions/2022-06-07/5fbb1c7e-ac06-4161-8cf1-d721f4860495.png)
15
+
16
+ ---
3
17
 
4
18
  画像を見る限り「Material Design In XAML Toolkit」のようですね。
5
19
  不具合があったようですけど、今は直ってそうですよ。
@@ -20,4 +34,24 @@
20
34
  </StackPanel>
21
35
  </Window>
22
36
  ```
37
+ ```xaml
38
+ <Application
39
+ x:Class="Qs88bt90k25ufz4.App"
40
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
41
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
42
+ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
43
+ StartupUri="MainWindow.xaml">
44
+ <Application.Resources>
45
+ <ResourceDictionary>
46
+ <ResourceDictionary.MergedDictionaries>
47
+ <materialDesign:BundledTheme
48
+ BaseTheme="Light"
49
+ PrimaryColor="DeepPurple"
50
+ SecondaryColor="Lime" />
51
+ <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
52
+ </ResourceDictionary.MergedDictionaries>
53
+ </ResourceDictionary>
54
+ </Application.Resources>
55
+ </Application>
56
+ ```
23
57
  ![アプリ画像](https://ddjkaamml8q8x.cloudfront.net/questions/2022-06-07/aea9b0f1-37a9-46d3-b82b-871f253662b7.png)