Reputation: 717
I have a requirement to draw a vertical line shown in Image attached. it has a width of say (1 px) Equal width in the middle but at the Dead ends it shoul look like getting disappeared. I tried with line and border but it does not look like getting disappeared at the dead ends.
Upvotes: 0
Views: 49
Reputation: 23290
Something like this;
<Rectangle Width="1">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="DarkGray" Offset="0.75"/>
<GradientStop Offset="1"/>
<GradientStop Color="DarkGray" Offset="0.25"/>
<GradientStop Offset="0"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
Upvotes: 2