Represents the content element of RadWaitingBarElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class WaitingBarContentElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementWaitingBarContentElement...
Implements:
Inherited Members
Constructors
Initializes rightward movement and subscribes to changes in the indicator collection.
public WaitingBarContentElement()
Fields
Indicates whether a throbber is travelling in the reverse direction.
protected bool isBackwards
The current displacement used to position moving indicators or the animated dash separator.
protected float offset
Tracks whether the initial animation pass is still in progress, which affects the starting positions of indicators.
protected bool waitingFirstRun
The waiting style property of WaitingBarContentElement
public static RadProperty WaitingStyleProperty
Properties
Returns true if WaitingStyle is Indeterminate, Throbber or Dash.
protected bool IsOldWaitingStyle { get; }
Indicates whether the element is currently waiting
public bool IsWaiting { get; set; }
Gets an instance of the WaitingBarSeparatorElement class that represents the waiting bar separator element
[Browsable(false)]
public WaitingBarSeparatorElement SeparatorElement { get; }
Gets an instance of the WaitingBarTextElement class that represents the waiting bar text element
[Browsable(false)]
public WaitingBarTextElement TextElement { get; }
Gets and sets the direction of waiting. Range: Bottom, Left, Right, Top
public ProgressOrientation WaitingDirection { get; set; }
Gets a collection of BaseWaitingBarIndicatorElement elements which contains all waiting indicators of RadWaitingBar
public WaitingBarIndicatorCollection WaitingIndicators { get; }
Gets or sets the style of the WaitingBarElement.
[Browsable(true)]
public WaitingBarStyles WaitingStyle { get; set; }
Methods
Arranges the indeterminate indicator elements.
protected void ArrangeIndeterminateIndicatorElements(RectangleF clientRect)
The client rectangle.
Arranges children according to WaitingStyle and lays the text element over the content bounds.
Calculates the indicator step.
protected float CalculateIndicatorStep(RectangleF clientRect)
The client rectangle.
Returns:Creates the separator and text children, then adds the current waiting indicators to the visual tree.
protected override void CreateChildElements()
Overrides:
Clears all indicators and creates new, depending on the WaitingStyle value.
protected virtual void CreateIndicators()
Gets the final size of the dash element.
protected RectangleF GetDashElementFinalSize(WaitingBarSeparatorElement element, RectangleF clientRect)
The element.
clientRectRectangleFThe client rectangle.
Returns:Gets the reversed direction.
public ProgressOrientation GetReversedDirection(ProgressOrientation direction)
The direction.
Returns:Gets the final size of the throbber indicator element.
protected RectangleF GetThrobberIndicatorElementFinalSize(WaitingBarIndicatorElement element, RectangleF clientRect)
The element.
clientRectRectangleFThe client rectangle.
Returns:Increments the offset of the indicator
Configures the content to stretch and clip its children without drawing its own fill or border.
protected override void InitializeFields()
Overrides:
Determines whether this instance is vertical.
Measures the separator, text, and indicators, returning the text size when there are no indicators or the first indicator's size otherwise.
Moves the indicator element.
protected RectangleF MoveIndicatorElement(WaitingBarIndicatorElement element, RectangleF clientRect, ProgressOrientation waitingDirection)
The element.
clientRectRectangleFThe client rectangle.
waitingDirectionProgressOrientationThe waiting direction.
Returns:Resets the waiting state of the indicator.
public virtual void ResetWaiting()
Clips drawing to the element's shape when one is defined; otherwise uses the base clipping behavior.
protected override void SetClipping(Graphics rawGraphics)
The graphics surface whose clipping region is updated.
Overrides:
Sets the dash initial position.
protected RectangleF SetDashInitialPosition(WaitingBarSeparatorElement element, RectangleF clientRect)
The element.
clientRectRectangleFThe client rectangle.
Returns:Sets the elements visibility.
protected void SetElementsVisibility(WaitingBarStyles style)
The style.
Sets the indicators visibility.
protected void SetIndicatorsVisibility(ElementVisibility visibility)
The visibility.
Synchronizes fill and border settings on this element and its owner when switching between legacy and newer waiting styles.
Updates the vertical state property of the indicator.
protected void UpdateElementsState(WaitingBarIndicatorElement indicator)
The indicator.
Updates the indicator stretch orientation.
protected void UpdateIndicatorStretch(BaseWaitingBarIndicatorElement indicator)
The indicator.
Updates the offset.
protected void UpdateOffset(RectangleF clientRect)
The client rectangle.