How to draw a rectangle with one different border
i want a rectangle with this measures left=50, top=20, rigth=50 and bottom=10 in XAML
Something like
thanks
UPDATE:
i want to create a Grid with that shape, i said grid because the control should contain other controls like an image and thi开发者_JAVA技巧s control should grow or shrink with the form.
The Shape you are showing is not a rectangle.
You'll need a Path to do this:
<Path Data="M0,0 L20,0 L10,50 L0,50 z"
Fill="White"
Height="50"
Stroke="Black"
Width="20"/>
You can do this with a Border:
<Border BorderBrush="Blue" BorderThickness="50 20 50 10"/>
精彩评论