79547418

Date: 2025-03-31 23:22:29
Score: 1
Natty:
Report link

You need the following Polygon elements in the Button element in your XAML code:

<Polygon x:Name="TopTriangle"
 Points="0,0 15,0 15,15" 
 Fill="Green"
 Stroke="Cyan"
 HorizontalAlignment="Right"
 VerticalAlignment="Top"
 Margin="3"/>

<Polygon x:Name="BottomTriangle"
 Points="0,0 0,15 15,15" 
 Fill="Cyan"
 Stroke="Cyan"
 HorizontalAlignment="Left"
 VerticalAlignment="Bottom"
 Margin="3"/>

Consider inverted cartesian product, top triangle points are:

x1,y1 x2,y2, x3,y3 = 0,0 15,0 15,15

And bottom triangle points are:

x1,y1 x2,y2, x3,y3 = 0,0 0,15 15,15

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Basheer Jarrah