質問編集履歴
5
表示方法
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,11 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
```ここに言語名を入力
|
26
|
+
|
27
|
+
ソースコード
|
28
|
+
|
25
|
-
<!-- *****************
|
29
|
+
<!-- ***************** RadioButtonStyle Windows Server 2012表示用 *****************-->
|
26
30
|
|
27
31
|
<Style x:Key="RadioButtonStyleDisplay" TargetType="{x:Type RadioButton}">
|
28
32
|
|
@@ -65,8 +69,6 @@
|
|
65
69
|
<Setter.Value>
|
66
70
|
|
67
71
|
<ControlTemplate TargetType="{x:Type RadioButton}">
|
68
|
-
|
69
|
-
<!-- ********************************** ここまでいじった **********************************-->
|
70
72
|
|
71
73
|
<Grid x:Name="templateRoot" Background="Transparent">
|
72
74
|
|
@@ -187,3 +189,5 @@
|
|
187
189
|
</Setter>
|
188
190
|
|
189
191
|
</Style>
|
192
|
+
|
193
|
+
```
|
4
間違えた
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,44 +22,168 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
|
25
|
+
<!-- ********************************** RadioButtonStyle Windows Server 2012表示用 未完成 **********************************-->
|
26
26
|
|
27
|
-
|
27
|
+
<Style x:Key="RadioButtonStyleDisplay" TargetType="{x:Type RadioButton}">
|
28
28
|
|
29
|
-
|
29
|
+
<Setter Property="FocusVisualStyle">
|
30
30
|
|
31
|
-
|
31
|
+
<Setter.Value>
|
32
32
|
|
33
|
-
|
33
|
+
<Style>
|
34
34
|
|
35
|
-
|
35
|
+
<Setter Property="Control.Template">
|
36
36
|
|
37
|
+
<Setter.Value>
|
37
38
|
|
39
|
+
<ControlTemplate>
|
38
40
|
|
39
|
-
<
|
41
|
+
<Ellipse Margin="2" SnapsToDevicePixels="True" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
|
40
42
|
|
41
|
-
<
|
43
|
+
</ControlTemplate>
|
42
44
|
|
43
|
-
|
45
|
+
</Setter.Value>
|
44
46
|
|
45
|
-
|
47
|
+
</Setter>
|
46
48
|
|
47
|
-
|
49
|
+
</Style>
|
48
50
|
|
51
|
+
</Setter.Value>
|
49
52
|
|
53
|
+
</Setter>
|
50
54
|
|
51
|
-
<
|
55
|
+
<Setter Property="Background" Value="White"/>
|
52
56
|
|
53
|
-
|
57
|
+
<Setter Property="BorderBrush" Value="#FF707070"/>
|
54
58
|
|
55
|
-
|
59
|
+
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
56
60
|
|
57
|
-
|
61
|
+
<Setter Property="BorderThickness" Value="1"/>
|
58
62
|
|
59
|
-
|
63
|
+
<Setter Property="Template">
|
60
64
|
|
61
|
-
|
65
|
+
<Setter.Value>
|
62
66
|
|
63
|
-
|
67
|
+
<ControlTemplate TargetType="{x:Type RadioButton}">
|
64
68
|
|
65
|
-
|
69
|
+
<!-- ********************************** ここまでいじった **********************************-->
|
70
|
+
|
71
|
+
<Grid x:Name="templateRoot" Background="Transparent">
|
72
|
+
|
73
|
+
<Grid.ColumnDefinitions>
|
74
|
+
|
75
|
+
<ColumnDefinition Width="1*"/>
|
76
|
+
|
77
|
+
</Grid.ColumnDefinitions>
|
78
|
+
|
79
|
+
<Border x:Name="RadioButtonBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
80
|
+
|
81
|
+
<Grid x:Name="markGrid">
|
82
|
+
|
83
|
+
<Path x:Name="optionMark" Data="F1M9.97498,1.22334L4.6983,9.09834 4.52164,9.09834 0,5.19331 1.27664,3.52165 4.255,6.08833 8.33331,1.52588E-05 9.97498,1.22334z" Fill="#FF212121" Margin="1" Opacity="0" Stretch="None"/>
|
84
|
+
|
85
|
+
<Ellipse x:Name="indeterminateMark" Fill="#FF212121" Margin="2" Opacity="0"/>
|
86
|
+
|
87
|
+
</Grid>
|
88
|
+
|
89
|
+
</Border>
|
90
|
+
|
91
|
+
<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" ContentStringFormat="{TemplateBinding ContentStringFormat}" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
92
|
+
|
93
|
+
</Grid>
|
94
|
+
|
95
|
+
<ControlTemplate.Triggers>
|
96
|
+
|
97
|
+
<Trigger Property="HasContent" Value="True">
|
98
|
+
|
99
|
+
<Setter Property="FocusVisualStyle">
|
100
|
+
|
101
|
+
<Setter.Value>
|
102
|
+
|
103
|
+
<Style>
|
104
|
+
|
105
|
+
<Setter Property="Control.Template">
|
106
|
+
|
107
|
+
<Setter.Value>
|
108
|
+
|
109
|
+
<ControlTemplate>
|
110
|
+
|
111
|
+
<Rectangle Margin="14,0,0,0" SnapsToDevicePixels="True" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
|
112
|
+
|
113
|
+
</ControlTemplate>
|
114
|
+
|
115
|
+
</Setter.Value>
|
116
|
+
|
117
|
+
</Setter>
|
118
|
+
|
119
|
+
</Style>
|
120
|
+
|
121
|
+
</Setter.Value>
|
122
|
+
|
123
|
+
</Setter>
|
124
|
+
|
125
|
+
<Setter Property="Padding" Value="4,-1,0,0"/>
|
126
|
+
|
127
|
+
</Trigger>
|
128
|
+
|
129
|
+
<Trigger Property="IsMouseOver" Value="True">
|
130
|
+
|
131
|
+
<Setter Property="Background" TargetName="RadioButtonBorder" Value="#FFF3F9FF"/>
|
132
|
+
|
133
|
+
<Setter Property="BorderBrush" TargetName="RadioButtonBorder" Value="#FF5593FF"/>
|
134
|
+
|
135
|
+
<Setter Property="Fill" TargetName="optionMark" Value="#FF212121"/>
|
136
|
+
|
137
|
+
<Setter Property="Fill" TargetName="indeterminateMark" Value="#FF212121"/>
|
138
|
+
|
139
|
+
</Trigger>
|
140
|
+
|
141
|
+
<Trigger Property="IsEnabled" Value="False">
|
142
|
+
|
143
|
+
<Setter Property="Background" TargetName="RadioButtonBorder" Value="#FFE6E6E6"/>
|
144
|
+
|
145
|
+
<Setter Property="BorderBrush" TargetName="RadioButtonBorder" Value="#FFBCBCBC"/>
|
146
|
+
|
147
|
+
<Setter Property="Fill" TargetName="optionMark" Value="#FF707070"/>
|
148
|
+
|
149
|
+
<Setter Property="Fill" TargetName="indeterminateMark" Value="#FF707070"/>
|
150
|
+
|
151
|
+
</Trigger>
|
152
|
+
|
153
|
+
<Trigger Property="IsPressed" Value="True">
|
154
|
+
|
155
|
+
<Setter Property="Background" TargetName="RadioButtonBorder" Value="#FFD9ECFF"/>
|
156
|
+
|
157
|
+
<Setter Property="BorderBrush" TargetName="RadioButtonBorder" Value="#FF3C77DD"/>
|
158
|
+
|
159
|
+
<Setter Property="Fill" TargetName="optionMark" Value="#FF212121"/>
|
160
|
+
|
161
|
+
<Setter Property="Fill" TargetName="indeterminateMark" Value="#FF212121"/>
|
162
|
+
|
163
|
+
</Trigger>
|
164
|
+
|
165
|
+
<Trigger Property="IsChecked" Value="True">
|
166
|
+
|
167
|
+
<Setter Property="Opacity" TargetName="optionMark" Value="1"/>
|
168
|
+
|
169
|
+
<Setter Property="Opacity" TargetName="indeterminateMark" Value="0"/>
|
170
|
+
|
171
|
+
</Trigger>
|
172
|
+
|
173
|
+
<Trigger Property="IsChecked" Value="{x:Null}">
|
174
|
+
|
175
|
+
<Setter Property="Opacity" TargetName="optionMark" Value="0"/>
|
176
|
+
|
177
|
+
<Setter Property="Opacity" TargetName="indeterminateMark" Value="1"/>
|
178
|
+
|
179
|
+
</Trigger>
|
180
|
+
|
181
|
+
</ControlTemplate.Triggers>
|
182
|
+
|
183
|
+
</ControlTemplate>
|
184
|
+
|
185
|
+
</Setter.Value>
|
186
|
+
|
187
|
+
</Setter>
|
188
|
+
|
189
|
+
</Style>
|
3
コメントの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,9 @@
|
|
34
34
|
|
35
35
|
Orientation="Vertical" >
|
36
36
|
|
37
|
+
|
38
|
+
|
37
|
-
|
39
|
+
<!-- A -->
|
38
40
|
|
39
41
|
<RadioButton Content="{DynamicResource LabelPanelNumber}"
|
40
42
|
|
@@ -46,7 +48,7 @@
|
|
46
48
|
|
47
49
|
|
48
50
|
|
49
|
-
|
51
|
+
<!-- B -->
|
50
52
|
|
51
53
|
<RadioButton Content="{DynamicResource LabelBoardNumber}"
|
52
54
|
|
2
ソースコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,3 +15,49 @@
|
|
15
15
|
テスト環境 Windows Server 2012
|
16
16
|
|
17
17
|
Visual Studio 2012
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
### 該当のソースコード
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<GroupBox Header="{DynamicResource LabelProductNumberDesignation}"
|
26
|
+
|
27
|
+
Foreground="White">
|
28
|
+
|
29
|
+
<StackPanel Grid.Column="0"
|
30
|
+
|
31
|
+
HorizontalAlignment="Stretch"
|
32
|
+
|
33
|
+
VerticalAlignment="Top"
|
34
|
+
|
35
|
+
Orientation="Vertical" >
|
36
|
+
|
37
|
+
//A
|
38
|
+
|
39
|
+
<RadioButton Content="{DynamicResource LabelPanelNumber}"
|
40
|
+
|
41
|
+
Foreground="{Binding Brushes.ForegroundColorBrush}"
|
42
|
+
|
43
|
+
Margin="20,10,0,0"
|
44
|
+
|
45
|
+
IsChecked="{Binding Path=ProductNumberKind,Converter={StaticResource Int},ConverterParameter=0}"/>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
//B
|
50
|
+
|
51
|
+
<RadioButton Content="{DynamicResource LabelBoardNumber}"
|
52
|
+
|
53
|
+
Foreground="{Binding Brushes.ForegroundColorBrush}"
|
54
|
+
|
55
|
+
Margin="20,10,0,10"
|
56
|
+
|
57
|
+
IsChecked="{Binding Path=ProductNumberKind,Converter={StaticResource Int},ConverterParameter=1}"/>
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
</StackPanel>
|
62
|
+
|
63
|
+
</GroupBox>
|
1
初心者マークの付け忘れ
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Visual Studio 2012を用いて、WPFをC#で作ろうと思っています。
|
6
6
|
|
7
|
-
Windows10だとRadioBouttonにチェック入れたときに表示されるのですが、Windows Server 2012だとRadioBouttonにカーソルを合わせないとチェックが表示されません。CheckBoxもこのような状態になりましたが、以前の質問で解決することができました。
|
7
|
+
Windows10だとRadioBouttonにチェック入れたときに表示されるのですが、Windows Server 2012だとRadioBouttonにカーソルを合わせないとチェックが表示されません。CheckBoxもこのような状態になりましたが、以前の質問で解決することができました。どうぞよろしくお願いします。
|
8
8
|
|
9
9
|
|
10
10
|
|