我有一个 StackPanel,里面有几个 CheckBox 控件。调整窗口大小时,如何防止 StackPanel 缩小和遮挡 CheckBox 控件?
<StackPanel Margin="12,89,12,62" Name="stackPanel1">
<CheckBox Name="chkOption1" Width="157" IsChecked="True" Margin="6">Do this thing</CheckBox>
<CheckBox Name="chkOption2" Width="157" IsChecked="True" Margin="6">Do another thing</CheckBox>
<CheckBox Name="chkOption2" Width="157" Margin="6">Do a third thing</CheckBox>
<Button Height="23" Name="btnRunOperations" Click="btnRunOperations_Click" Margin="3">Do Selected Things</Button>
</StackPanel>
编辑:WPF 是否有不同的容器控件具有“开箱即用”的这种行为?这似乎是一个非常常见的场景。