回答編集履歴
1
1
test
CHANGED
@@ -5,3 +5,101 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
ちなみにご存知かもしれませんが、添付されている画像はWindows XPの標準テーマ(ビジュアルスタイル)です。
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
-----
|
12
|
+
|
13
|
+
ボタンはpresentationframework.Classicを参照に入れてリソースを適用させてやればよさそうです。
|
14
|
+
|
15
|
+
(プロパティから「ローカルにコピー」をTrueにしないと実行時にエラーが出るぽい?)
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
背景`{DynamicResource {x:Static SystemColors.ControlBrushKey}}`で良いと思います。
|
20
|
+
|
21
|
+
フォントは`FontFamily="MS UI Gothic" FontSize="12"`辺りかなと思います。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
あとは適用に足してもらえればそれっぽい見た目になると思います。
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
```xaml
|
30
|
+
|
31
|
+
<Window x:Class="WpfApp1.MainWindow"
|
32
|
+
|
33
|
+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
34
|
+
|
35
|
+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
36
|
+
|
37
|
+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
38
|
+
|
39
|
+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
40
|
+
|
41
|
+
xmlns:local="clr-namespace:WpfApp1"
|
42
|
+
|
43
|
+
mc:Ignorable="d"
|
44
|
+
|
45
|
+
Title="MainWindow"
|
46
|
+
|
47
|
+
WindowStyle="None"
|
48
|
+
|
49
|
+
SizeToContent="WidthAndHeight"
|
50
|
+
|
51
|
+
FontFamily="MS UI Gothic" FontSize="12"
|
52
|
+
|
53
|
+
>
|
54
|
+
|
55
|
+
<Window.Resources>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
</Window.Resources>
|
60
|
+
|
61
|
+
<DockPanel>
|
62
|
+
|
63
|
+
<Grid Background="Blue" Height="26" DockPanel.Dock="Top">
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
</Grid>
|
68
|
+
|
69
|
+
<Grid Background="Blue">
|
70
|
+
|
71
|
+
<Grid Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Margin="4,0,4,4">
|
72
|
+
|
73
|
+
<StackPanel Margin="8">
|
74
|
+
|
75
|
+
<TextBlock Text="あああああああああああいいいいいいいいいいいいいいううううううううううう" />
|
76
|
+
|
77
|
+
<Button Content="OK" Width="100" Height="22" HorizontalAlignment="Center" Margin="0,15,0,0">
|
78
|
+
|
79
|
+
<Button.Resources>
|
80
|
+
|
81
|
+
<ResourceDictionary Source="/presentationframework.Classic;component/themes/classic.xaml" />
|
82
|
+
|
83
|
+
</Button.Resources>
|
84
|
+
|
85
|
+
</Button>
|
86
|
+
|
87
|
+
</StackPanel>
|
88
|
+
|
89
|
+
</Grid>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
</Grid>
|
94
|
+
|
95
|
+
</DockPanel>
|
96
|
+
|
97
|
+
</Window>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
```
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
![イメージ説明](b8737e48dbc994db5ef661a8820df56d.png)
|