tags:

views:

44

answers:

1

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

+5  A: 

Yes:

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

Same as goes for Margin, Padding etc.

Goblin
Shouldn't it be BorderThickness="1,1,1,0" ?
Vivek
Both versions work.
Jonathan Allen
@Vivek: Just a matter of preference - I hate the commas :-)
Goblin
+1 did not know that... also did not know you could set different border thickness.
Vivek