文章出處
文章列表
<Window x:Class="WrapPanel.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="300" Width="310"> <Grid> <WrapPanel Orientation="Vertical" HorizontalAlignment="Right"><!--設置流方向為垂直,內部控件的對齊方式是向右--> <Button Content="OK" Width="50" Height="50"></Button> <Button Content="OK" Width="50" Height="50"></Button> <Button Content="OK" Width="50" Height="50"></Button> <Button Content="OK" Width="50" Height="50"></Button> <Button Content="OK" Width="50" Height="50"></Button> <Button Content="OK" Width="50" Height="50"></Button> <Button Content="OK" Width="50" Height="50"></Button> </WrapPanel> </Grid> </Window>
截圖:
文章列表
全站熱搜