teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

書式の改善

2015/02/20 14:57

投稿

honi
honi

スコア7

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
  以上です。よろしくお願いいたします。