Class Arc
Draws a segment of an Ellipse.
Namespace: Sartorius.SAF.Presentation.Controls.Shapes
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public sealed class Arc : Shape, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Examples
The following example shows how to use the Arc with angles in radians.
<Grid Width="100" Height="100"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:saf="http://www.sartorius.com/SAF">
<saf:Arc StartAngle="0" EndAngle="3" StrokeThickness="5" Stroke="Black" />
</Grid>
<saf:Arc StartAngle="0" EndAngle="3" StrokeThickness="5" Stroke="Black" />
The following example shows how to use the Arc with angles in degrees.
<Grid Width="100" Height="100"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:saf="http://www.sartorius.com/SAF">
<saf:Arc StartAngle="45°" EndAngle="80°" StrokeThickness="3" Stroke="Black" />
</Grid>
<saf:Arc StartAngle="45°" EndAngle="80°" StrokeThickness="3" Stroke="Black" />
Fields
View SourceEndAngleProperty
Identifies the DependencyProperty for the EndAngle property.
Declaration
public static readonly DependencyProperty EndAngleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
StartAngleProperty
Identifies the DependencyProperty for the StartAngle property.
Declaration
public static readonly DependencyProperty StartAngleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceDefiningGeometry
Declaration
protected override Geometry DefiningGeometry { get; }
Property Value
| Type | Description |
|---|---|
| Geometry |
Overrides
View SourceEndAngle
Gets or sets the end angle of this arc.
Declaration
public ArcValue EndAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| ArcValue |
StartAngle
Gets or sets the starting angle of this arc.
Declaration
public ArcValue StartAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| ArcValue |
Methods
View SourceArrangeOverride(Size)
Arranges a Shape by evaluating its RenderedGeometry and Stretch properties.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | finalSize | The final evaluated size of the Shape. |
Returns
| Type | Description |
|---|---|
| Size | The final size of the arranged Shape element. |
Overrides
View SourceMeasureOverride(Size)
Measures a Shape during the first layout pass prior to arranging it.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | constraint | A maximum Size to not exceed. |
Returns
| Type | Description |
|---|---|
| Size |