質問するログイン新規登録

質問編集履歴

2

追記

2017/02/09 13:23

投稿

Praline
Praline

スコア46

title CHANGED
File without changes
body CHANGED
@@ -24,4 +24,34 @@
24
24
 
25
25
  ```
26
26
  上記コードの場合、ビューワ上は問題ないのですが、実行するとScrollViewerとStackpanelの間に空白ができます。
27
- ![イメージ説明](a42b941384fa5bb2f912328c388aefdc.png)
27
+ ![イメージ説明](a42b941384fa5bb2f912328c388aefdc.png)
28
+
29
+
30
+
31
+ ###追記
32
+ ```XML
33
+
34
+ <Window x:Class="MainWindow"
35
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
36
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
37
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
38
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
39
+ xmlns:local="clr-namespace:Tw"
40
+ mc:Ignorable="d"
41
+ Title="MainWindow" Height="350" Width="525">
42
+ <Grid>
43
+
44
+ <DockPanel>
45
+ <ScrollViewer VerticalScrollBarVisibility="Auto" Background="Aqua" Height="259" DockPanel.Dock="Top">
46
+
47
+ </ScrollViewer>
48
+ <StackPanel Background="AliceBlue" Height="60" DockPanel.Dock="Bottom">
49
+ <TextBox Height="40"></TextBox>
50
+ <Button Content="aaa"/>
51
+ </StackPanel>
52
+
53
+ </DockPanel>
54
+
55
+ </Grid>
56
+ </Window>
57
+ ```

1

画像の追加

2017/02/09 13:23

投稿

Praline
Praline

スコア46

title CHANGED
File without changes
body CHANGED
@@ -23,4 +23,5 @@
23
23
  </Window>
24
24
 
25
25
  ```
26
- 上記コードの場合、ビューワ上は問題ないのですが、実行するとScrollViewerとStackpanelの間に空白ができます。
26
+ 上記コードの場合、ビューワ上は問題ないのですが、実行するとScrollViewerとStackpanelの間に空白ができます。
27
+ ![イメージ説明](a42b941384fa5bb2f912328c388aefdc.png)