Border on three sides

Is there a way to create a border that is only at the top, left and right?

+48
wpf border
Oct 12 '10 at 18:23
source share
2 answers

Yes:

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

Same as field, pad, etc.

+100
Oct 12 '10 at 18:25
source share

And just for fun, to do this in code:

 var b = new Border(); b.BorderThickness = new Thickness{Top=1, Bottom=0, Left=1, Right=1}; 
+14
Jun 15 '11 at 16:09
source share



All Articles