容器控件Border控件
Border控件主要用于绘制边框,在某种程度上扮演容器控件的角色。
Background:背景颜色
BorderBrush:边框颜色
CornerRadius:4个角的弧度,只设一个值代表4个角的弧度一样。也可以分别进行设置。
BorderThickness:4个方向上边框的宽度。
附带代码:
<Gridx:Name="ContentPanel"Grid.Row="1"Margin="12,0,12,0"><BorderBackground="Blue"Margin="141,99,194,410"BorderBrush="White"CornerRadius="50"><ButtonWidth="100"Height="100"Background="Red"></Button></Border><BorderBackground="Blue"Margin="141,255,194,254"BorderBrush="White"CornerRadius="10,20,35,18"><ButtonWidth="100"Height="100"Background="Red"></Button></Border></Grid>
效果为:
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。