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
public WaitingBarContentElement()
Fields
protected bool isBackwards
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 the content and child elements within the final allocated space, positioning text, images, and child elements.
Calculates the indicator step.
protected float CalculateIndicatorStep(RectangleF clientRect)
The client rectangle.
Returns:Called by the element when constructed. Allows inheritors to build the element 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
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Determines whether this instance is vertical.
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
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()
protected override void SetClipping(Graphics rawGraphics)
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.
protected virtual void UpdateBorderAndFillVisibility(bool wasPrevWaitingStyleOld)
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.