EllipsedProgressBar ClassDW.WPFToolkit Documentation
Implements the ProgressBar in an ellipsed form.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.Controls.PrimitivesRangeBase
                System.Windows.ControlsProgressBar
                  DW.WPFToolkit.ControlsEllipsedProgressBar

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class EllipsedProgressBar : ProgressBar

The EllipsedProgressBar type exposes the following members.

Constructors

  NameDescription
Public methodEllipsedProgressBar
Initializes a new instance of the EllipsedProgressBar class.
Top
Methods

  NameDescription
Public methodOnApplyTemplate
The template gets added to the control.
(Overrides ProgressBarOnApplyTemplate.)
Protected methodOnMaximumChanged
Handles changed maximum value.
(Overrides ProgressBarOnMaximumChanged(Double, Double).)
Protected methodOnMinimumChanged
Handles changed minimum value.
(Overrides ProgressBarOnMinimumChanged(Double, Double).)
Protected methodOnRender
Called when the element has to be rendered.
(Overrides UIElementOnRender(DrawingContext).)
Protected methodOnValueChanged
Handles changed progress value.
(Overrides ProgressBarOnValueChanged(Double, Double).)
Top
Fields

  NameDescription
Public fieldStatic memberDisplayKindProperty
Identifies the DisplayKind dependency property.
Public fieldStatic memberHasPercentLabelProperty
Identifies the HasPercentLabel dependency property.
Public fieldStatic memberInnerCircleBrushProperty
Identifies the InnerCircleBrush dependency property.
Public fieldStatic memberInnerCircleDashArrayProperty
Identifies the InnerCircleDashArray dependency property.
Public fieldStatic memberInnerCircleThicknessProperty
Identifies the InnerCircleThickness dependency property.
Public fieldStatic memberInnerRadiusProperty
Identifies the InnerRadius dependency property.
Public fieldStatic memberIsIndeterminateProperty
Identifies the IsIndeterminate dependency property.
Public fieldStatic memberIsInversedProperty
Identifies the IsInversed dependency property.
Public fieldStatic memberItemsFactoryProperty
Identifies the ItemsFactory dependency property.
Public fieldStatic memberOutherCircleBrushProperty
Identifies the OutherCircleBrush dependency property.
Public fieldStatic memberOutherCircleDashArrayProperty
Identifies the OutherCircleDashArray dependency property.
Public fieldStatic memberOutherCircleThicknessProperty
Identifies the OutherCircleThickness dependency property.
Public fieldStatic memberOutherRadiusProperty
Identifies the OutherRadius dependency property.
Public fieldStatic memberPercentLabelStyleProperty
Identifies the PercentLabelStyle dependency property.
Public fieldStatic memberRotateDirectionProperty
Identifies the RotateDirection dependency property.
Public fieldStatic memberRotateItemsProperty
Identifies the RotateItems dependency property.
Public fieldStatic memberRotateSpeedProperty
Identifies the RotateSpeed dependency property.
Public fieldStatic memberShowInnerCircleProperty
Identifies the ShowInnerCircle dependency property.
Public fieldStatic memberShowOutherCircleProperty
Identifies the ShowOutherCircle dependency property.
Public fieldStatic memberStartAngleProperty
Identifies the StartAngle dependency property.
Public fieldStatic memberStrokeThicknessProperty
Identifies the StrokeThickness dependency property.
Top
Properties

  NameDescription
Public propertyDisplayKind
Gets or sets a value which indicates how the progress should be displayed. See EllipsedProgressBarKind.
Public propertyHasPercentLabel
Gets or sets a value which indicates if a percentage text is shown in the center of the EllipsedProgressBar or not.
Public propertyInnerCircleBrush
Gets or sets the color of the inner ellipse
Public propertyInnerCircleDashArray
Gets or sets the dash array of the inner circle.
Public propertyInnerCircleThickness
Gets or sets the thickness of the inner ellipse.
Public propertyInnerRadius
Gets or sets the inner radius of the ellipse
Public propertyIsIndeterminate
Gets or sets a value which indicates if the EllipsedProgressBar is indeterminate.
Public propertyIsInversed
Gets or sets a value which indicates if the progress should be painted as an inversed state.
Public propertyItemsFactory
Gets or sets the IItemsFactory to be used when the DisplayKind is set to Items.
Public propertyOutherCircleBrush
Gets or sets the color of the outher ellipse.
Public propertyOutherCircleDashArray
Gets or sets the dash array of the outher ellipse.
Public propertyOutherCircleThickness
Gets or sets the thickness of the outher ellipse.
Public propertyOutherRadius
Gets or sets the outher radius of the ellipse.
Public propertyPercentLabelStyle
Gets or sets the style of ther percentage display in center of the EllipsedProgressBar.
Public propertyRotateDirection
Gets or sets the rotate orientation to be used for the items created by the ItemsFactory if RotateItems is set to true.
Public propertyRotateItems
Gets or sets a value which indicates if the items created by the ItemsFactory should be rotated or not.
Public propertyRotateSpeed
Gets or sets the rotating speed to be used when IsIndeterminate is set to true.
Public propertyShowInnerCircle
Gets or set a value which indicates of the inner ellipse is shown or not.
Public propertyShowOutherCircle
Gets or sets a value which indicates of the outher ellipse is shown or not.
Public propertyStartAngle
Gets or sets the start position of the progress in the ellipse. 0 is on Top.
Public propertyStrokeThickness
Gets or sets the stroke thickness of the ellipses.
Top
Examples

XAML
<Controls:EllipsedProgressBar Value="10"
                              Minimum="0"
                              Maximum="100"
                              OutherRadius="20"
                              RotateSpeed="0.5"
                              IsIndeterminate="True" />

<Controls:EllipsedProgressBar Value="25"
                              Minimum="0"
                              Maximum="100"
                              OutherRadius="20"
                              RotateSpeed="0.8"
                              IsIndeterminate="True"
                              IsInversed="True" />

<Controls:EllipsedProgressBar Value="34"
                              Minimum="0"
                              Maximum="100"
                              OutherRadius="20"
                              HasPercentLabel="True" />

<Controls:EllipsedProgressBar Value="0"
                              Minimum="0"
                              Maximum="100"
                              OutherRadius="20"
                              RotateSpeed="0.8"
                              DisplayKind="Pointer"
                              InnerRadius="10"
                              ShowInnerCircle="True"
                              ShowOutherCircle="True"
                              StrokeThickness="1"
                              IsIndeterminate="True" />

<Grid>
    <Controls:EllipsedProgressBar Value="20"
                                  Minimum="0"
                                  Maximum="100"
                                  OutherRadius="20"
                                  InnerRadius="5"
                                  RotateSpeed="0.7"
                                  IsIndeterminate="True" />

    <Controls:GappedOverlay OutherRadius="21" InnerRadius="5" InnerGapRadius="8" OutherGapRadius="16" />

</Grid>

<Controls:EllipsedProgressBar Value="100"
                              Minimum="0"
                              Maximum="100"
                              InnerRadius="16"
                              OutherRadius="18.5"
                              RotateSpeed="0.8"
                              IsIndeterminate="True"
                              DisplayKind="Items">
    <Controls:EllipsedProgressBar.ItemsFactory>
        <Controls:EllipseItemsFactory Size="5"
                                      ItemsCount="15"
                                      OpacityShrinking="0.1" />
    </Controls:EllipsedProgressBar.ItemsFactory>
</Controls:EllipsedProgressBar>

<Controls:EllipsedProgressBar Value="100"
                              Minimum="0"
                              Maximum="100"
                              InnerRadius="15"
                              OutherRadius="20"
                              RotateSpeed="0.8"
                              IsIndeterminate="True"
                              DisplayKind="Items">
    <Controls:EllipsedProgressBar.ItemsFactory>
        <Controls:LineItemsFactory Caps="Flat"
                                   Length="8"
                                   OpacityShrinking="0.1"
                                   ItemsCount="8"
                                   Thickness="2" />
    </Controls:EllipsedProgressBar.ItemsFactory>
</Controls:EllipsedProgressBar>
See Also

Reference