質問編集履歴

1

MainWindow,UserControlのコード追記

2016/12/27 00:59

投稿

suzuki123
suzuki123

スコア18

test CHANGED
File without changes
test CHANGED
@@ -58,6 +58,56 @@
58
58
 
59
59
  ```
60
60
 
61
+ <Window x:Class="WpfTest.MainWindow"
62
+
63
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
64
+
65
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
66
+
67
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
68
+
69
+ xmlns:local="clr-namespace:WpfTest"
70
+
71
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
72
+
73
+ Title="MainWindow"
74
+
75
+ Width="450"
76
+
77
+ Height="350"
78
+
79
+ mc:Ignorable="d">
80
+
81
+ <Grid>
82
+
83
+ <StackPanel>
84
+
85
+ <Button x:Name="BTN"
86
+
87
+ HorizontalAlignment="Left"
88
+
89
+ VerticalAlignment="Top" />
90
+
91
+
92
+
93
+ <Button x:Name="BTN2"
94
+
95
+ HorizontalAlignment="Left"
96
+
97
+ VerticalAlignment="Top" />
98
+
99
+
100
+
101
+ </StackPanel>
102
+
103
+ </Grid>
104
+
105
+ </Window>
106
+
107
+ ```
108
+
109
+ ```
110
+
61
111
  <Window x:Class="WpfTest.TestWindow"
62
112
 
63
113
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
@@ -172,6 +222,70 @@
172
222
 
173
223
  ```
174
224
 
225
+ ```
226
+
227
+ <UserControl x:Class="WpfTest.UcTest_02"
228
+
229
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
230
+
231
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
232
+
233
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
234
+
235
+ xmlns:local="clr-namespace:WpfTest"
236
+
237
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
238
+
239
+ d:DesignHeight="300"
240
+
241
+ d:DesignWidth="300"
242
+
243
+ mc:Ignorable="d">
244
+
245
+ <Grid>
246
+
247
+ <Grid x:Name="GRD_TEST"
248
+
249
+ Width="100"
250
+
251
+ Height="100"
252
+
253
+ Margin="10,10,0,0"
254
+
255
+ HorizontalAlignment="Left"
256
+
257
+ VerticalAlignment="Top"
258
+
259
+ Background="Red">
260
+
261
+ <Image x:Name="IMG_TEST1"
262
+
263
+ HorizontalAlignment="Left"
264
+
265
+ VerticalAlignment="Top" />
266
+
267
+ <Image x:Name="IMG_TEST2"
268
+
269
+ HorizontalAlignment="Left"
270
+
271
+ VerticalAlignment="Top"
272
+
273
+ Focusable="true" />
274
+
275
+ </Grid>
276
+
277
+
278
+
279
+ </Grid>
280
+
281
+ </UserControl>
282
+
283
+
284
+
285
+ ```
286
+
287
+
288
+
175
289
 
176
290
 
177
291
  ###補足情報(言語/FW/ツール等のバージョンなど)