回答編集履歴
1
書式の改善
answer
CHANGED
@@ -3,7 +3,9 @@
|
|
3
3
|
|
4
4
|
以下のような感じで、いかがでしょうか。
|
5
5
|
|
6
|
+
```
|
6
7
|
[XAML]
|
8
|
+
|
7
9
|
<Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
|
8
10
|
<Setter Property="Template">
|
9
11
|
<Setter.Value>
|
@@ -36,8 +38,11 @@
|
|
36
38
|
</Setter.Value>
|
37
39
|
</Setter>
|
38
40
|
</Style>
|
41
|
+
```
|
39
42
|
|
43
|
+
```
|
40
44
|
[CS]
|
45
|
+
|
41
46
|
public class SearchButtonControl: Control
|
42
47
|
{
|
43
48
|
static SearchButtonControl()
|
@@ -45,5 +50,5 @@
|
|
45
50
|
DefaultStyleKeyProperty.OverrideMetadata(typeof(SearchButtonControl), new FrameworkPropertyMetadata(typeof(SearchButtonControl)));
|
46
51
|
}
|
47
52
|
}
|
48
|
-
|
53
|
+
```
|
49
54
|
以上です。よろしくお願いいたします。
|