The rough idea is this:
PointCollection points = new PointCollection(
{
new Point(-3, this.Height *13/22),
new Point(this.Width *2/13, -3),
new Point(this.Width*9/11,0),
new Point(this.Width,this.Height*2/5),
new Point(this.Width*6/7,this.Height*170/171),
new Point(this.Width*2/11,this.Height*170/171)
});
Polygon polygon = new Polygon();
polygon.Points = points;
polygon.Stroke = Brushes.Red;
polygon.StrokeThickness = 3;
polygon.Width = this.Width;
polygon.Height = this.Height;
Then all you need to do is add it to whatever Container you have set in your XAML. Suppose it's a
Grid
called
LayoutRoot
, you'd use
LayoutRoot.Children.Add(polygon);
I leave you to add the
isBold
stuff because that's so similar.