I have the following XAML:
<Ellipse StrokeThickness="2" Stroke="Green"></Ellipse>
<Rectangle Margin="150,0,149,150" Name="rectanglePie" Stroke="Green" Height="150" VerticalAlignment="Bottom">
<Rectangle.RenderTransform>
<RotateTransform x:Name="pieEdge" CenterX="0" CenterY="150" Angle="60" />
</Rectangle.RenderTransform>
</Rectangle>
<Rectangle Margin="150,0,149,150" Name="rectangleStatic" Stroke="Green" Height="150" VerticalAlignment="Bottom">
</Rectangle>
What I would like to do is to fill the pie slice that this contains with a colour. Is this possible, and if so, how would I go about this?
To get you started...
<Canvas>
<Path Canvas.Left="150"
Canvas.Top="150"
Fill="Blue"
Stroke="Black">
<Path.Data>
<PathGeometry>
<PathFigure StartPoint="0 0"
IsClosed="True">
<LineSegment Point="200 110" />
<LineSegment Point="-100,100"/>
<ArcSegment x:Name="arc"
Size="100 100"
SweepDirection="ClockWise" />
</PathFigure>
</PathGeometry>
</Path.Data>
</Path>
</Canvas>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With