タグ付けされた質問 「dockpanel」

4
StackPanelの子が最大スペースを下に埋めるにはどうすればよいですか?
単純に左側にフローテキスト、右側にヘルプボックスを表示します。 ヘルプボックスが一番下まで伸びているはずです。 StackPanel下のアウターを取り出すと上手くいきます。 しかし、レイアウトの理由から(ユーザーコントロールを動的に挿入しています)、ラッピングが必要StackPanelです。 試してみGroupBoxたように、をの下部まで拡張するにはどうすればよいですかStackPanel。 VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" Height="Auto" XAML: <Window x:Class="TestDynamic033.Test3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Test3" Height="300" Width="600"> <StackPanel VerticalAlignment="Stretch" Height="Auto"> <DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Margin="10"> <GroupBox DockPanel.Dock="Right" Header="Help" Width="100" Background="Beige" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" Height="Auto"> <TextBlock Text="This is the help that is available on the news screen." TextWrapping="Wrap" /> </GroupBox> <StackPanel DockPanel.Dock="Left" Margin="10" …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.