码迷,mamicode.com
首页 > Windows程序 > 详细

1.WPF-Border边框--BorderBrush(边框颜色)--Padding(与内部元素的距离)--CornerRadius(圆角的半径)

时间:2015-11-23 16:34:10      阅读:668      评论:0      收藏:0      [点我收藏+]

标签:

<Window x:Class="StackPanel和border.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Border BorderBrush="Red" BorderThickness="4" Padding="6"  CornerRadius="88">
    <StackPanel Orientation="Horizontal">
        <Button Content="button1" ></Button>
    </StackPanel>
    </Border>
</Window>

技术分享

1.WPF-Border边框--BorderBrush(边框颜色)--Padding(与内部元素的距离)--CornerRadius(圆角的半径)

标签:

原文地址:http://www.cnblogs.com/ItDotNet/p/4988589.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!