开发者

Border on three sides

Is there way to create a border that is onl开发者_开发知识库y on the top, left, and right sides?


Yes:

<Border BorderThickness="1 1 1 0" BorderBrush="Black"/>

Same as goes for Margin, Padding etc.


And just for fun, to do so in code:

var b = new Border(); 
b.BorderThickness = new Thickness{Top=1, Bottom=0, Left=1, Right=1}; 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜