質問編集履歴
5
表示方法
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,7 +10,9 @@
|
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
12
|
|
13
|
+
```ここに言語名を入力
|
14
|
+
ソースコード
|
13
|
-
<!-- *****************
|
15
|
+
<!-- ***************** RadioButtonStyle Windows Server 2012表示用 *****************-->
|
14
16
|
<Style x:Key="RadioButtonStyleDisplay" TargetType="{x:Type RadioButton}">
|
15
17
|
<Setter Property="FocusVisualStyle">
|
16
18
|
<Setter.Value>
|
@@ -32,7 +34,6 @@
|
|
32
34
|
<Setter Property="Template">
|
33
35
|
<Setter.Value>
|
34
36
|
<ControlTemplate TargetType="{x:Type RadioButton}">
|
35
|
-
<!-- ********************************** ここまでいじった **********************************-->
|
36
37
|
<Grid x:Name="templateRoot" Background="Transparent">
|
37
38
|
<Grid.ColumnDefinitions>
|
38
39
|
<ColumnDefinition Width="1*"/>
|
@@ -92,4 +93,5 @@
|
|
92
93
|
</ControlTemplate>
|
93
94
|
</Setter.Value>
|
94
95
|
</Setter>
|
95
|
-
</Style>
|
96
|
+
</Style>
|
97
|
+
```
|
4
間違えた
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,24 +10,86 @@
|
|
10
10
|
|
11
11
|
### 該当のソースコード
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
13
|
+
<!-- ********************************** RadioButtonStyle Windows Server 2012表示用 未完成 **********************************-->
|
14
|
+
<Style x:Key="RadioButtonStyleDisplay" TargetType="{x:Type RadioButton}">
|
15
|
+
<Setter Property="FocusVisualStyle">
|
16
|
+
<Setter.Value>
|
17
|
+
<Style>
|
18
|
+
<Setter Property="Control.Template">
|
19
|
+
<Setter.Value>
|
20
|
+
<ControlTemplate>
|
21
|
+
<Ellipse Margin="2" SnapsToDevicePixels="True" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
|
22
|
+
</ControlTemplate>
|
23
|
+
</Setter.Value>
|
24
|
+
</Setter>
|
25
|
+
</Style>
|
26
|
+
</Setter.Value>
|
27
|
+
</Setter>
|
28
|
+
<Setter Property="Background" Value="White"/>
|
29
|
+
<Setter Property="BorderBrush" Value="#FF707070"/>
|
30
|
+
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
|
31
|
+
<Setter Property="BorderThickness" Value="1"/>
|
32
|
+
<Setter Property="Template">
|
33
|
+
<Setter.Value>
|
34
|
+
<ControlTemplate TargetType="{x:Type RadioButton}">
|
35
|
+
<!-- ********************************** ここまでいじった **********************************-->
|
36
|
+
<Grid x:Name="templateRoot" Background="Transparent">
|
37
|
+
<Grid.ColumnDefinitions>
|
38
|
+
<ColumnDefinition Width="1*"/>
|
39
|
+
</Grid.ColumnDefinitions>
|
40
|
+
<Border x:Name="RadioButtonBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="1" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
|
41
|
+
<Grid x:Name="markGrid">
|
42
|
+
<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"/>
|
43
|
+
<Ellipse x:Name="indeterminateMark" Fill="#FF212121" Margin="2" Opacity="0"/>
|
44
|
+
</Grid>
|
45
|
+
</Border>
|
46
|
+
<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}"/>
|
47
|
+
</Grid>
|
48
|
+
<ControlTemplate.Triggers>
|
49
|
+
<Trigger Property="HasContent" Value="True">
|
50
|
+
<Setter Property="FocusVisualStyle">
|
51
|
+
<Setter.Value>
|
52
|
+
<Style>
|
53
|
+
<Setter Property="Control.Template">
|
54
|
+
<Setter.Value>
|
55
|
+
<ControlTemplate>
|
56
|
+
<Rectangle Margin="14,0,0,0" SnapsToDevicePixels="True" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
|
57
|
+
</ControlTemplate>
|
58
|
+
</Setter.Value>
|
59
|
+
</Setter>
|
60
|
+
</Style>
|
61
|
+
</Setter.Value>
|
62
|
+
</Setter>
|
63
|
+
<Setter Property="Padding" Value="4,-1,0,0"/>
|
64
|
+
</Trigger>
|
65
|
+
<Trigger Property="IsMouseOver" Value="True">
|
66
|
+
<Setter Property="Background" TargetName="RadioButtonBorder" Value="#FFF3F9FF"/>
|
67
|
+
<Setter Property="BorderBrush" TargetName="RadioButtonBorder" Value="#FF5593FF"/>
|
68
|
+
<Setter Property="Fill" TargetName="optionMark" Value="#FF212121"/>
|
69
|
+
<Setter Property="Fill" TargetName="indeterminateMark" Value="#FF212121"/>
|
70
|
+
</Trigger>
|
71
|
+
<Trigger Property="IsEnabled" Value="False">
|
72
|
+
<Setter Property="Background" TargetName="RadioButtonBorder" Value="#FFE6E6E6"/>
|
73
|
+
<Setter Property="BorderBrush" TargetName="RadioButtonBorder" Value="#FFBCBCBC"/>
|
74
|
+
<Setter Property="Fill" TargetName="optionMark" Value="#FF707070"/>
|
75
|
+
<Setter Property="Fill" TargetName="indeterminateMark" Value="#FF707070"/>
|
76
|
+
</Trigger>
|
77
|
+
<Trigger Property="IsPressed" Value="True">
|
78
|
+
<Setter Property="Background" TargetName="RadioButtonBorder" Value="#FFD9ECFF"/>
|
79
|
+
<Setter Property="BorderBrush" TargetName="RadioButtonBorder" Value="#FF3C77DD"/>
|
80
|
+
<Setter Property="Fill" TargetName="optionMark" Value="#FF212121"/>
|
81
|
+
<Setter Property="Fill" TargetName="indeterminateMark" Value="#FF212121"/>
|
82
|
+
</Trigger>
|
83
|
+
<Trigger Property="IsChecked" Value="True">
|
84
|
+
<Setter Property="Opacity" TargetName="optionMark" Value="1"/>
|
85
|
+
<Setter Property="Opacity" TargetName="indeterminateMark" Value="0"/>
|
86
|
+
</Trigger>
|
87
|
+
<Trigger Property="IsChecked" Value="{x:Null}">
|
88
|
+
<Setter Property="Opacity" TargetName="optionMark" Value="0"/>
|
89
|
+
<Setter Property="Opacity" TargetName="indeterminateMark" Value="1"/>
|
90
|
+
</Trigger>
|
91
|
+
</ControlTemplate.Triggers>
|
92
|
+
</ControlTemplate>
|
93
|
+
</Setter.Value>
|
94
|
+
</Setter>
|
95
|
+
</Style>
|
3
コメントの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,13 +16,14 @@
|
|
16
16
|
HorizontalAlignment="Stretch"
|
17
17
|
VerticalAlignment="Top"
|
18
18
|
Orientation="Vertical" >
|
19
|
+
|
19
|
-
|
20
|
+
<!-- A -->
|
20
21
|
<RadioButton Content="{DynamicResource LabelPanelNumber}"
|
21
22
|
Foreground="{Binding Brushes.ForegroundColorBrush}"
|
22
23
|
Margin="20,10,0,0"
|
23
24
|
IsChecked="{Binding Path=ProductNumberKind,Converter={StaticResource Int},ConverterParameter=0}"/>
|
24
25
|
|
25
|
-
|
26
|
+
<!-- B -->
|
26
27
|
<RadioButton Content="{DynamicResource LabelBoardNumber}"
|
27
28
|
Foreground="{Binding Brushes.ForegroundColorBrush}"
|
28
29
|
Margin="20,10,0,10"
|
2
ソースコードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,4 +6,27 @@
|
|
6
6
|
### 補足情報(FW/ツールのバージョンなど)
|
7
7
|
開発環境 Windows10
|
8
8
|
テスト環境 Windows Server 2012
|
9
|
-
Visual Studio 2012
|
9
|
+
Visual Studio 2012
|
10
|
+
|
11
|
+
### 該当のソースコード
|
12
|
+
|
13
|
+
<GroupBox Header="{DynamicResource LabelProductNumberDesignation}"
|
14
|
+
Foreground="White">
|
15
|
+
<StackPanel Grid.Column="0"
|
16
|
+
HorizontalAlignment="Stretch"
|
17
|
+
VerticalAlignment="Top"
|
18
|
+
Orientation="Vertical" >
|
19
|
+
//A
|
20
|
+
<RadioButton Content="{DynamicResource LabelPanelNumber}"
|
21
|
+
Foreground="{Binding Brushes.ForegroundColorBrush}"
|
22
|
+
Margin="20,10,0,0"
|
23
|
+
IsChecked="{Binding Path=ProductNumberKind,Converter={StaticResource Int},ConverterParameter=0}"/>
|
24
|
+
|
25
|
+
//B
|
26
|
+
<RadioButton Content="{DynamicResource LabelBoardNumber}"
|
27
|
+
Foreground="{Binding Brushes.ForegroundColorBrush}"
|
28
|
+
Margin="20,10,0,10"
|
29
|
+
IsChecked="{Binding Path=ProductNumberKind,Converter={StaticResource Int},ConverterParameter=1}"/>
|
30
|
+
|
31
|
+
</StackPanel>
|
32
|
+
</GroupBox>
|
1
初心者マークの付け忘れ
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
お世話になっております。
|
2
2
|
|
3
3
|
Visual Studio 2012を用いて、WPFをC#で作ろうと思っています。
|
4
|
-
Windows10だとRadioBouttonにチェック入れたときに表示されるのですが、Windows Server 2012だとRadioBouttonにカーソルを合わせないとチェックが表示されません。CheckBoxもこのような状態になりましたが、以前の質問で解決することができました。
|
4
|
+
Windows10だとRadioBouttonにチェック入れたときに表示されるのですが、Windows Server 2012だとRadioBouttonにカーソルを合わせないとチェックが表示されません。CheckBoxもこのような状態になりましたが、以前の質問で解決することができました。どうぞよろしくお願いします。
|
5
5
|
|
6
6
|
### 補足情報(FW/ツールのバージョンなど)
|
7
7
|
開発環境 Windows10
|