如果你把它放到 Kaxaml 中:
<WrapPanel Width="500"
           ScrollViewer.VerticalScrollBarVisibility="Visible">
  <Button Width="110"
          Height="100"></Button>
  <Button Width="130"
          Height="100"></Button>
  <Button Width="70"
          Height="100"></Button>
  <Button Width="50"
          Height="100"></Button>
  <Button Width="329"
          Height="100"></Button>
  <Button Width="126"
          Height="100"></Button>
  <Button Width="86"
          Height="100"></Button>
  <Button Width="48"
          Height="100"></Button>
  <Button Width="200"
          Height="100"></Button>
  <Button Width="190"
          Height="100"></Button>
</WrapPanel>
您会看到一堆按钮与参差不齐的右侧对齐(但左侧对齐)。
有没有办法让每个“行”的内容按比例扩展以填充该行? (所以它的左右两边都会有直线?)