No discussion on this subject would be complete without mentioning the geometry mini-language (or Path Markup Syntax) for a more compact shape definition:-
<Button>
<Path Fill="Black" Data="M 0 6 L 12 6 L 6 0 Z"/>
</Button>
<Button>
<Path Fill="Black" Data="M 0 0 L 6 6 L 12 0 Z"/>
</Button>
The first describes a Move to 0,6 Line to 12,6 Line to 6,0 and then close the shape (Z).
xequnsruuh on Mar 05, 2013
I find Marlett (a font built into Windows) handy for that sort of thing.
rajesh on Mar 05, 2013
No discussion on this subject would be complete without mentioning the geometry mini-language (or Path Markup Syntax) for a more compact shape definition:-
The first describes a Move to 0,6 Line to 12,6 Line to 6,0 and then close the shape (Z).
There is also a curve syntax.
johan-offer on Mar 05, 2013
You can create a
Polygonwhich represents your up and down triangles and then set them to be the content of the buttons:You can tweak these to draw different figured, but that’s generally the XAML you would use for basic geometry.
scott on Mar 05, 2013
If you would like to have an arrow with base rectangle you can use this sample…