回答編集履歴
1
見直しキャンペーン中
answer
CHANGED
@@ -1,62 +1,62 @@
|
|
1
|
-
どうなればいいのかちょっとわかりませんが、基本的にサイズは入れません(`Auto`状態)
|
2
|
-
`Alignment`も`Stretch`以外は、中のコンテンツに合わそうとするので広がりません。
|
3
|
-
|
4
|
-
```
|
5
|
-
<Window
|
6
|
-
x:Class="Questions333670.MainWindow"
|
7
|
-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
8
|
-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
9
|
-
Width="1000"
|
10
|
-
Height="800">
|
11
|
-
|
12
|
-
<Grid>
|
13
|
-
<Grid.RowDefinitions>
|
14
|
-
<RowDefinition />
|
15
|
-
<RowDefinition />
|
16
|
-
</Grid.RowDefinitions>
|
17
|
-
<Grid.ColumnDefinitions>
|
18
|
-
<ColumnDefinition />
|
19
|
-
<ColumnDefinition />
|
20
|
-
</Grid.ColumnDefinitions>
|
21
|
-
|
22
|
-
<GroupBox Margin="10">
|
23
|
-
<Grid Margin="10" ShowGridLines="True">
|
24
|
-
<Grid.ColumnDefinitions>
|
25
|
-
<ColumnDefinition />
|
26
|
-
<ColumnDefinition />
|
27
|
-
<ColumnDefinition />
|
28
|
-
<ColumnDefinition />
|
29
|
-
<ColumnDefinition />
|
30
|
-
<ColumnDefinition />
|
31
|
-
<ColumnDefinition />
|
32
|
-
</Grid.ColumnDefinitions>
|
33
|
-
<Grid.RowDefinitions>
|
34
|
-
<RowDefinition Height="20" />
|
35
|
-
<RowDefinition />
|
36
|
-
<RowDefinition />
|
37
|
-
<RowDefinition />
|
38
|
-
<RowDefinition />
|
39
|
-
<RowDefinition />
|
40
|
-
</Grid.RowDefinitions>
|
41
|
-
</Grid>
|
42
|
-
</GroupBox>
|
43
|
-
|
44
|
-
<GroupBox Grid.Column="1" Margin="10">
|
45
|
-
<DockPanel Margin="10">
|
46
|
-
<UniformGrid Columns="7" DockPanel.Dock="Top">
|
47
|
-
<TextBlock HorizontalAlignment="Center" Text="日" />
|
48
|
-
<TextBlock HorizontalAlignment="Center" Text="月" />
|
49
|
-
<TextBlock HorizontalAlignment="Center" Text="火" />
|
50
|
-
<TextBlock HorizontalAlignment="Center" Text="水" />
|
51
|
-
<TextBlock HorizontalAlignment="Center" Text="木" />
|
52
|
-
<TextBlock HorizontalAlignment="Center" Text="金" />
|
53
|
-
<TextBlock HorizontalAlignment="Center" Text="土" />
|
54
|
-
</UniformGrid>
|
55
|
-
<UniformGrid Columns="7" Rows="5">
|
56
|
-
<Rectangle Fill="Pink" />
|
57
|
-
</UniformGrid>
|
58
|
-
</DockPanel>
|
59
|
-
</GroupBox>
|
60
|
-
</Grid>
|
61
|
-
</Window>
|
1
|
+
どうなればいいのかちょっとわかりませんが、基本的にサイズは入れません(`Auto`状態)
|
2
|
+
`Alignment`も`Stretch`以外は、中のコンテンツに合わそうとするので広がりません。
|
3
|
+
|
4
|
+
```xml
|
5
|
+
<Window
|
6
|
+
x:Class="Questions333670.MainWindow"
|
7
|
+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
8
|
+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
9
|
+
Width="1000"
|
10
|
+
Height="800">
|
11
|
+
|
12
|
+
<Grid>
|
13
|
+
<Grid.RowDefinitions>
|
14
|
+
<RowDefinition />
|
15
|
+
<RowDefinition />
|
16
|
+
</Grid.RowDefinitions>
|
17
|
+
<Grid.ColumnDefinitions>
|
18
|
+
<ColumnDefinition />
|
19
|
+
<ColumnDefinition />
|
20
|
+
</Grid.ColumnDefinitions>
|
21
|
+
|
22
|
+
<GroupBox Margin="10">
|
23
|
+
<Grid Margin="10" ShowGridLines="True">
|
24
|
+
<Grid.ColumnDefinitions>
|
25
|
+
<ColumnDefinition />
|
26
|
+
<ColumnDefinition />
|
27
|
+
<ColumnDefinition />
|
28
|
+
<ColumnDefinition />
|
29
|
+
<ColumnDefinition />
|
30
|
+
<ColumnDefinition />
|
31
|
+
<ColumnDefinition />
|
32
|
+
</Grid.ColumnDefinitions>
|
33
|
+
<Grid.RowDefinitions>
|
34
|
+
<RowDefinition Height="20" />
|
35
|
+
<RowDefinition />
|
36
|
+
<RowDefinition />
|
37
|
+
<RowDefinition />
|
38
|
+
<RowDefinition />
|
39
|
+
<RowDefinition />
|
40
|
+
</Grid.RowDefinitions>
|
41
|
+
</Grid>
|
42
|
+
</GroupBox>
|
43
|
+
|
44
|
+
<GroupBox Grid.Column="1" Margin="10">
|
45
|
+
<DockPanel Margin="10">
|
46
|
+
<UniformGrid Columns="7" DockPanel.Dock="Top">
|
47
|
+
<TextBlock HorizontalAlignment="Center" Text="日" />
|
48
|
+
<TextBlock HorizontalAlignment="Center" Text="月" />
|
49
|
+
<TextBlock HorizontalAlignment="Center" Text="火" />
|
50
|
+
<TextBlock HorizontalAlignment="Center" Text="水" />
|
51
|
+
<TextBlock HorizontalAlignment="Center" Text="木" />
|
52
|
+
<TextBlock HorizontalAlignment="Center" Text="金" />
|
53
|
+
<TextBlock HorizontalAlignment="Center" Text="土" />
|
54
|
+
</UniformGrid>
|
55
|
+
<UniformGrid Columns="7" Rows="5">
|
56
|
+
<Rectangle Fill="Pink" />
|
57
|
+
</UniformGrid>
|
58
|
+
</DockPanel>
|
59
|
+
</GroupBox>
|
60
|
+
</Grid>
|
61
|
+
</Window>
|
62
62
|
```
|