Shapes
The ActiproSoftware.Windows.Shapes namespace contains shapes that can be used in XAML.
It can be imported with this XML namespace import:
xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
SemiEllipse Class
The SemiEllipse class defines a half ellipse shape.
These properties are important:
- ApexSide - The side upon which the semi-ellipse apex appears.
- IsClosed - Whether the side opposite the apex is closed.
<shared:SemiEllipse Width="40" Height="20" ApexSide="Top" Fill="Red" />
Triangle Class
The Triangle class defines a triangle shape.
These properties are important:
- ApexSide - The side upon which the triangle apex appears.
- IsClosed - Whether the side opposite the apex is closed.
<shared:Triangle Width="20" Height="20" ApexSide="Top" Fill="Red" />
Wave Class
The Wave class defines a wave shape.
These properties are important:
- ApexCount - The number of apexes in the wave.
- ApexSide - The side upon which the wave apex appears.
- IsInverted - Whether the 'inside' of the shape occurs on the same side as the apex.
<shared:Wave Width="200" Height="10" ApexSide="Top" ApexCount="10" Stroke="Red" StrokeThickness="1" />
ZigZag Class
The ZigZag class defines a zig-zag shape.
These properties are important:
- ApexCount - The number of apexes in the zig-zag.
- ApexSide - The side upon which the zig-zag apex appears.
- IsInverted - Whether the 'inside' of the shape occurs on the same side as the apex.
<shared:ZigZag Width="200" Height="10" ApexSide="Top" ApexCount="10" Stroke="Red" StrokeThickness="1" />