WrapPanel流布局的一个简单例子

时间:2014-01-17 09:19:24   收藏:0   阅读:534
bubuko.com,布布扣
<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>
bubuko.com,布布扣

截图:

bubuko.com,布布扣   bubuko.com,布布扣

原文:http://www.cnblogs.com/KeenLeung/p/3523349.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!