0
<StackPanel Grid.Row="0" Height="Auto" Width="Auto">
<Label Name="Label1" BorderThickness="2,2,2,2" BorderBrush="Gray" HorizontalContentAlignment="Center" Width="Auto" Height="28">Window1</Label>
<ListView BorderThickness="2,0,2,0" BorderBrush="Gray"Height="Auto" Width="Auto" />
</StackPanel>
在上面的XAML中,我想將ListView
停靠在StackPanel
上。我希望ListView
在Label
之後採取StackPanel
的整個客戶區域。如何將ListView停靠在StackPanel上?
我在做什麼錯?