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

时间:2015-11-23 16:30:54   收藏:0   阅读:2724
<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>

技术分享

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

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