質問編集履歴
1
想定しているビューを追加、画像を追加、画像に合わせデザインのコードを一部修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -21,12 +21,12 @@
|
|
21
21
|
|
22
22
|
<!--2つのコントロールを区別する方法-->
|
23
23
|
<StackPanel Orientation="Vertical">
|
24
|
-
<TextBlock Height="
|
24
|
+
<TextBlock Height="20" TextAlignment="Center" FontSize="10" Text="{Binding}"/>
|
25
25
|
<!--Textの部分にバインドする-->
|
26
26
|
</StackPanel>
|
27
27
|
|
28
28
|
<StackPanel Orientation="Vertical">
|
29
|
-
<TextBlock Height="
|
29
|
+
<TextBlock Height="10" TextAlignment="Center" FontSize="10" Text="{Binding}"/>
|
30
30
|
<!--Textの部分にバインドする-->
|
31
31
|
</StackPanel>
|
32
32
|
|
@@ -46,10 +46,14 @@
|
|
46
46
|
Title="MainWindow" Height="350" Width="525">
|
47
47
|
|
48
48
|
<Grid>
|
49
|
-
<local:UserControl1 Text="
|
49
|
+
<local:UserControl1 Text="Control1_A"/>
|
50
|
+
<local:UserControl1 Text="Control1_B"/>
|
50
|
-
<local:UserControl1 Text="
|
51
|
+
<local:UserControl1 Text="Control2_A"/>
|
52
|
+
<local:UserControl1 Text="Control1_C"/>
|
51
53
|
<!--上記のように、コードは使わずバインドしたい-->
|
52
54
|
</Grid>
|
53
55
|
</Window>
|
54
56
|
|
55
|
-
```
|
57
|
+
```
|
58
|
+
###想定しているビュー
|
59
|
+

|