I want to create a shape which kinda looks like a match. The head is an Ellipse
with a solid Stroke
and a somewhat transparent Fill
. The stick is a border with a solid BorderBrush
and a somewhat transparent Background
.
I can combine those two elements and it actually looks fine. The issue is, that the Fill
of the Ellipse
is transparent so you can see the beginning of the border (red part in the image).
Now my question is: How can I clip this part of my Border
?
maybe someone can edit this post so the images can be inline
Example Code
<Grid>
<Ellipse Fill="#33000000"
Stroke="#FF000000"
StrokeThickness="2"
HorizontalAlignment="Left" VerticalAlignment="Bottom"
Width="15" Height="15" />
<Border Height="9" Margin="10 0 0 3"
HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
BorderThickness="0 2"
BorderBrush="#FF000000"
Background="#33000000" />
</Grid>