質問編集履歴
1
MainWindow,UserControlのコード追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -28,6 +28,31 @@
|
|
28
28
|
}
|
29
29
|
```
|
30
30
|
```
|
31
|
+
<Window x:Class="WpfTest.MainWindow"
|
32
|
+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
33
|
+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
34
|
+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
35
|
+
xmlns:local="clr-namespace:WpfTest"
|
36
|
+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
37
|
+
Title="MainWindow"
|
38
|
+
Width="450"
|
39
|
+
Height="350"
|
40
|
+
mc:Ignorable="d">
|
41
|
+
<Grid>
|
42
|
+
<StackPanel>
|
43
|
+
<Button x:Name="BTN"
|
44
|
+
HorizontalAlignment="Left"
|
45
|
+
VerticalAlignment="Top" />
|
46
|
+
|
47
|
+
<Button x:Name="BTN2"
|
48
|
+
HorizontalAlignment="Left"
|
49
|
+
VerticalAlignment="Top" />
|
50
|
+
|
51
|
+
</StackPanel>
|
52
|
+
</Grid>
|
53
|
+
</Window>
|
54
|
+
```
|
55
|
+
```
|
31
56
|
<Window x:Class="WpfTest.TestWindow"
|
32
57
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
33
58
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
@@ -85,7 +110,39 @@
|
|
85
110
|
}
|
86
111
|
}
|
87
112
|
```
|
113
|
+
```
|
114
|
+
<UserControl x:Class="WpfTest.UcTest_02"
|
115
|
+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
116
|
+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
117
|
+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
118
|
+
xmlns:local="clr-namespace:WpfTest"
|
119
|
+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
120
|
+
d:DesignHeight="300"
|
121
|
+
d:DesignWidth="300"
|
122
|
+
mc:Ignorable="d">
|
123
|
+
<Grid>
|
124
|
+
<Grid x:Name="GRD_TEST"
|
125
|
+
Width="100"
|
126
|
+
Height="100"
|
127
|
+
Margin="10,10,0,0"
|
128
|
+
HorizontalAlignment="Left"
|
129
|
+
VerticalAlignment="Top"
|
130
|
+
Background="Red">
|
131
|
+
<Image x:Name="IMG_TEST1"
|
132
|
+
HorizontalAlignment="Left"
|
133
|
+
VerticalAlignment="Top" />
|
134
|
+
<Image x:Name="IMG_TEST2"
|
135
|
+
HorizontalAlignment="Left"
|
136
|
+
VerticalAlignment="Top"
|
137
|
+
Focusable="true" />
|
138
|
+
</Grid>
|
88
139
|
|
140
|
+
</Grid>
|
141
|
+
</UserControl>
|
142
|
+
|
143
|
+
```
|
144
|
+
|
145
|
+
|
89
146
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
90
147
|
Windows7 Pro 64bit
|
91
148
|
visual studio 2015 pro
|