首页 > Windows开发 > 详细

Win10 UI入门RelativePanel

时间:2016-01-19 14:06:09      阅读:255      评论:0      收藏:0      [点我收藏+]

技术分享

 

        <RelativePanel Background="Black" >
            <Rectangle Fill="Red" Width="100" Height="100" 
                       RelativePanel.AlignHorizontalCenterWithPanel="True"
                       RelativePanel.AlignVerticalCenterWithPanel="True"/>
            
           <Rectangle Fill="Green" Width="100" Height="100"
                      RelativePanel.AlignLeftWithPanel="True"
                      RelativePanel.AlignTopWithPanel="True"/>

            <Rectangle Fill="Yellow" Width="100" Height="100"
                      RelativePanel.AlignRightWithPanel="True"
                      RelativePanel.AlignTopWithPanel="True"/>

            <Rectangle Fill="Gray" Width="100" Height="100"
                      RelativePanel.AlignLeftWithPanel="True"
                       RelativePanel.AlignBottomWithPanel="True"/>

            <Rectangle Fill="Blue" Width="100" Height="100"
                      RelativePanel.AlignRightWithPanel="True"
                      RelativePanel.AlignBottomWithPanel="True"/>
        </RelativePanel>

 

Win10 UI入门RelativePanel

原文:http://www.cnblogs.com/luquanmingren/p/5141809.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!