How to attach WPF controls when maximaize the window ?
-
Hi, I try to leave my control as thay are in case i maximaize my window - but i always find them in disorder in my window. this is the xaml code ...
<StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<TextBox Name="Title" Text="Title" Background="Yellow" Width="Auto" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="30" VerticalAlignment="Top"/>
<ListView Name="RecentReport" Width="Auto" Height="180" VerticalAlignment="Center" HorizontalContentAlignment="Center" />
<StackPanel Height="52" Name="stackPanel1" Width="Auto" VerticalAlignment="Bottom" Background="Aqua" Orientation="Horizontal" />
</StackPanel> -
Hi, I try to leave my control as thay are in case i maximaize my window - but i always find them in disorder in my window. this is the xaml code ...
<StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<TextBox Name="Title" Text="Title" Background="Yellow" Width="Auto" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="30" VerticalAlignment="Top"/>
<ListView Name="RecentReport" Width="Auto" Height="180" VerticalAlignment="Center" HorizontalContentAlignment="Center" />
<StackPanel Height="52" Name="stackPanel1" Width="Auto" VerticalAlignment="Bottom" Background="Aqua" Orientation="Horizontal" />
</StackPanel>Is this what you wanted?