Alex Rivera | Logout

How to specify rectangle stroke only on left and right in WPF?

Asked 2010-06-05T14:38:54.033
9

I want to have rectangle that should have stroke only on left and right side(not on upper and lower side). How can I do it ?

Edit
Report

1 Answer

15

You can't - a rectangle only has a single stroke thickness. A Border, though, uses a thickness structure that can have different thickness on each side:

<Border BorderThickness="5,0,5,0" BorderBrush="Black" />
answered 2010-06-05T14:48:29.163

Your Answer