Class CircularProgressBar
Control showing the progress as a circle.
Inheritance
CircularProgressBar
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class CircularProgressBar : RangeBase, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Examples
The following example shows how to use the circular progressbar.
<!-- ReSharper disable Xaml.RedundantNamespaceAlias -->
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:saf="http://www.sartorius.com/SAF"
Background="#E6E6E6"
Height="150"
Width="200">
<!-- ReSharper restore Xaml.RedundantNamespaceAlias -->
<saf:CircularProgressBar SnapsToDevicePixels="False" HorizontalAlignment="Center" VerticalAlignment="Center" Height="100" Width="100" Maximum="100" EnableAnimation="False" Value ="30" Foreground="#000000" Background="#999999" />
</Grid>
<saf:CircularProgressBar Maximum="100" Value ="30" />
Fields
View SourceAngleProperty
Identifies the DependencyProperty for the Angle property.
Declaration
public static readonly DependencyProperty AngleProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
EnableAnimationProperty
Identifies the DependencyProperty for the EnableAnimation property.
Declaration
public static readonly DependencyProperty EnableAnimationProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
StrokeThicknessProperty
Identifies the DependencyProperty for the StrokeThickness property.
Declaration
public static readonly DependencyProperty StrokeThicknessProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
View SourceAngle
Gets the current angle according to the current progress Value.
Declaration
public ArcValue Angle { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ArcValue |
EnableAnimation
Gets or sets a value indicating whether animation is enabled.
Declaration
public bool EnableAnimation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
StrokeThickness
Gets or sets the thickness of the bar.
Declaration
public double StrokeThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceOnValueChanged(double, double)
Raises the ValueChanged routed event.
Declaration
protected override void OnValueChanged(double oldValue, double newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| double | oldValue | Old value of the Value property. |
| double | newValue | New value of the Value property. |