Provides shared radius, rotation, and color-gradient behavior for ring-shaped waiting indicators.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class BaseRingWaitingBarIndicatorElement : BaseWaitingBarIndicatorElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseWaitingBarIndicatorElementBaseRingWaitingBarIndicatorElement...
Derived Classes:
Implements:
Inherited Members
Constructors
Creates a ring indicator with metadata radius defaults of 8 and 20, a 90-degree start angle, and clockwise rotation.
public BaseRingWaitingBarIndicatorElement()
Fields
Identifies ElementColor3; the metadata default is RGB 101, 137, 191.
public static RadProperty ElementColor3Property
Identifies ElementColor4; the metadata default is transparent.
public static RadProperty ElementColor4Property
Identifies the second color transition position; its metadata default is 0.666.
public static RadProperty ElementGradientPercentage2Property
Identifies the first color transition position; its metadata default is 0.5.
public static RadProperty ElementGradientPercentageProperty
Identifies ElementNumberOfColors; the metadata default is 2.
public static RadProperty ElementNumberOfColorsProperty
Identifies InitialStartElementAngle; the metadata default is 90 degrees.
public static RadProperty InitialStartElementAngleProperty
Identifies InnerRadius; the metadata default is 8 before DPI scaling.
public static RadProperty InnerRadiusProperty
Identifies Radius; the metadata default is 20 before DPI scaling.
public static RadProperty RadiusProperty
Identifies RotationDirection; the metadata default is clockwise.
public static RadProperty RotationDirectionProperty
Properties
Gets or sets the current leading element angle.
protected virtual int CurrentLeadingElementAngle { get; set; }
The current leading element angle.
Gets or sets the element back color3.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ElementColor3 { get; set; }
The element back color3.
Gets or sets the fourth color used by the ring's element gradient.
[TypeConverter(typeof(RadColorEditorConverter))]
public virtual Color ElementColor4 { get; set; }
The fourth element color.
Gets or sets the element gradient percentage.
[RadRange(0, 1)]
public virtual float ElementGradientPercentage { get; set; }
The element gradient percentage.
Gets or sets the element gradient percentage.
[RadRange(0, 1)]
public virtual float ElementGradientPercentage2 { get; set; }
The element gradient percentage.
Gets or sets the element number of colors.
[RadRange(1, 4)]
public virtual int ElementNumberOfColors { get; set; }
The element number of colors.
Gets or sets the initial start element angle.
[RadRange(0, 360)]
public virtual int InitialStartElementAngle { get; set; }
The initial start element angle.
Gets or sets the inner radius.
[RadRange(0, 2147483647)]
public virtual int InnerRadius { get; set; }
The inner radius.
Gets or sets the radius.
public virtual int Radius { get; set; }
The radius.
Gets or sets the rotation direction.
public virtual RotationDirection RotationDirection { get; set; }
The rotation direction.
Methods
Advances the leading angle by the frame increment in the configured rotation direction.
public override void Animate(int step)
The angular increment for this animation frame.
Overrides:
Validates radius and start-angle changes, resetting the animation when its start angle or rotation direction changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The changed property and its new value.
Overrides:
Returns the leading angle to InitialStartElementAngle.
public override void ResetAnimation()
Overrides:
Maps the waiting direction to clockwise or counterclockwise rotation before updating the base indicator.
public override void UpdateWaitingDirection(ProgressOrientation waitingDirection)
The direction in which the waiting indicator is displayed.
Overrides: