RingSpinner Class
Provides a spinnable ring-shaped busy indicator.
[TemplatePart(Name = "PART_RingSlice", Type = typeof(RingSlice))]
[TemplateVisualState(Name = "Stopped", GroupName = "SpinStates")]
[TemplateVisualState(Name = "Clockwise", GroupName = "SpinStates")]
public class RingSpinner : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
RingSpinner()
Initializes an instance of the class.
public RingSpinner()
Properties
IsSpinning
Indicates whether the control is spinning.
LineCap
The ring line cap.
Radius
The ring's outer radius, from which the ring is rendered inward.
Methods
ArrangeOverride(Size)
Called to arrange and size the content of a Control object.
protected override Size ArrangeOverride(Size finalSize)
| Parameter | Type | Description |
|---|---|---|
| finalSize | Size |
Returns
- Size:
The size of the control.
MeasureOverride(Size)
Called to remeasure a control.
protected override Size MeasureOverride(Size availableSize)
| Parameter | Type | Description |
|---|---|---|
| availableSize | Size |
Returns
- Size:
The size of the control, up to the maximum specified by
constraint.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
Fields
IsSpinningProperty
Defines the IsSpinning property.
public static readonly DependencyProperty IsSpinningProperty
LineCapProperty
Defines the LineCap property.
public static readonly DependencyProperty LineCapProperty
RadiusProperty
Defines the Radius property.
public static readonly DependencyProperty RadiusProperty