三边边框


Answers:


147

是:

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

与保证金,填充等相同。


不应该是BorderThickness =“ 1,1,1,0”吗?
Viv 2010年

1
@Vivek:只是一个优先事项-我讨厌逗号:-)
哥布林

4
+1不知道...也不知道您可以设置不同的边框粗细。
Viv

19

只是为了好玩,在代码中这样做:

var b = new Border(); 
b.BorderThickness = new Thickness{Top=1, Bottom=0, Left=1, Right=1}; 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.