質問編集履歴

2

追記

2017/02/09 13:23

投稿

Praline
Praline

スコア46

test CHANGED
File without changes
test CHANGED
@@ -51,3 +51,63 @@
51
51
  上記コードの場合、ビューワ上は問題ないのですが、実行するとScrollViewerとStackpanelの間に空白ができます。
52
52
 
53
53
  ![イメージ説明](a42b941384fa5bb2f912328c388aefdc.png)
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ ###追記
62
+
63
+ ```XML
64
+
65
+
66
+
67
+ <Window x:Class="MainWindow"
68
+
69
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
70
+
71
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
72
+
73
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
74
+
75
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
76
+
77
+ xmlns:local="clr-namespace:Tw"
78
+
79
+ mc:Ignorable="d"
80
+
81
+ Title="MainWindow" Height="350" Width="525">
82
+
83
+ <Grid>
84
+
85
+
86
+
87
+ <DockPanel>
88
+
89
+ <ScrollViewer VerticalScrollBarVisibility="Auto" Background="Aqua" Height="259" DockPanel.Dock="Top">
90
+
91
+
92
+
93
+ </ScrollViewer>
94
+
95
+ <StackPanel Background="AliceBlue" Height="60" DockPanel.Dock="Bottom">
96
+
97
+ <TextBox Height="40"></TextBox>
98
+
99
+ <Button Content="aaa"/>
100
+
101
+ </StackPanel>
102
+
103
+
104
+
105
+ </DockPanel>
106
+
107
+
108
+
109
+ </Grid>
110
+
111
+ </Window>
112
+
113
+ ```

1

画像の追加

2017/02/09 13:23

投稿

Praline
Praline

スコア46

test CHANGED
File without changes
test CHANGED
@@ -49,3 +49,5 @@
49
49
  ```
50
50
 
51
51
  上記コードの場合、ビューワ上は問題ないのですが、実行するとScrollViewerとStackpanelの間に空白ができます。
52
+
53
+ ![イメージ説明](a42b941384fa5bb2f912328c388aefdc.png)