ClassWaitingBarContentElement
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
WaitingBarContentElement()
Declaration
public WaitingBarContentElement()
Fields
WaitingStyleProperty
The waiting style property of WaitingBarContentElement
Declaration
public static RadProperty WaitingStyleProperty
Field Value
Properties
IsOldWaitingStyle
Returns true if WaitingStyle is Indeterminate, Throbber or Dash.
IsWaiting
Indicates whether the element is currently waiting
SeparatorElement
Gets an instance of the WaitingBarSeparatorElement class that represents the waiting bar separator element
Declaration
[Browsable(false)]
public WaitingBarSeparatorElement SeparatorElement { get; }
Property Value
TextElement
Gets an instance of the WaitingBarTextElement class that represents the waiting bar text element
Declaration
[Browsable(false)]
public WaitingBarTextElement TextElement { get; }
Property Value
WaitingDirection
Gets and sets the direction of waiting. Range: Bottom, Left, Right, Top
Declaration
public ProgressOrientation WaitingDirection { get; set; }
Property Value
WaitingIndicators
Gets a collection of BaseWaitingBarIndicatorElement elements which contains all waiting indicators of RadWaitingBar
Declaration
public WaitingBarIndicatorCollection WaitingIndicators { get; }
Property Value
WaitingStyle
Gets or sets the style of the WaitingBarElement.
Declaration
[Browsable(true)]
public WaitingBarStyles WaitingStyle { get; set; }
Property Value
Methods
AddIndicatorStep(float, int)
Adds the indicator step.
ArrangeIndeterminateIndicatorElements(RectangleF)
Arranges the indeterminate indicator elements.
Declaration
protected void ArrangeIndeterminateIndicatorElements(RectangleF clientRect)
Parameters
clientRect
The client rectangle.
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CalculateIndicatorStep(RectangleF)
Calculates the indicator step.
Declaration
protected float CalculateIndicatorStep(RectangleF clientRect)
Parameters
clientRect
The client rectangle.
Returns
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateIndicators()
Clears all indicators and creates new, depending on the WaitingStyle value.
Declaration
protected virtual void CreateIndicators()
GetDashElementFinalSize(WaitingBarSeparatorElement, RectangleF)
Gets the final size of the dash element.
Declaration
protected RectangleF GetDashElementFinalSize(WaitingBarSeparatorElement element, RectangleF clientRect)
Parameters
element
The element.
clientRect
The client rectangle.
Returns
GetReversedDirection(ProgressOrientation)
Gets the reversed direction.
Declaration
public ProgressOrientation GetReversedDirection(ProgressOrientation direction)
Parameters
direction
The direction.
Returns
GetThrobberIndicatorElementFinalSize(WaitingBarIndicatorElement, RectangleF)
Gets the final size of the throbber indicator element.
Declaration
protected RectangleF GetThrobberIndicatorElementFinalSize(WaitingBarIndicatorElement element, RectangleF clientRect)
Parameters
element
The element.
clientRect
The client rectangle.
Returns
IncrementOffset(int)
Increments the offset of the indicator
Declaration
public void IncrementOffset(int value)
Parameters
value
The value.
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
IsVertical()
Determines whether this instance is vertical.
Declaration
public bool IsVertical()
Returns
true if this instance is vertical; otherwise, false.
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
MoveIndicatorElement(WaitingBarIndicatorElement, RectangleF, ProgressOrientation)
Moves the indicator element.
Declaration
protected RectangleF MoveIndicatorElement(WaitingBarIndicatorElement element, RectangleF clientRect, ProgressOrientation waitingDirection)
Parameters
element
The element.
clientRect
The client rectangle.
waitingDirection
The waiting direction.
Returns
ResetWaiting()
Resets the waiting state of the indicator.
Declaration
public virtual void ResetWaiting()
SetClipping(Graphics)
Declaration
protected override void SetClipping(Graphics rawGraphics)
Parameters
rawGraphics
Overrides
SetDashInitialPosition(WaitingBarSeparatorElement, RectangleF)
Sets the dash initial position.
Declaration
protected RectangleF SetDashInitialPosition(WaitingBarSeparatorElement element, RectangleF clientRect)
Parameters
element
The element.
clientRect
The client rectangle.
Returns
SetElementsVisibility(WaitingBarStyles)
Sets the elements visibility.
Declaration
protected void SetElementsVisibility(WaitingBarStyles style)
Parameters
style
The style.
SetIndicatorsVisibility(ElementVisibility)
Sets the indicators visibility.
Declaration
protected void SetIndicatorsVisibility(ElementVisibility visibility)
Parameters
visibility
The visibility.
UpdateBorderAndFillVisibility(bool)
Declaration
protected virtual void UpdateBorderAndFillVisibility(bool wasPrevWaitingStyleOld)
Parameters
wasPrevWaitingStyleOld
UpdateElementsState(WaitingBarIndicatorElement)
Updates the vertical state property of the indicator.
Declaration
protected void UpdateElementsState(WaitingBarIndicatorElement indicator)
Parameters
indicator
The indicator.
UpdateIndicatorStretch(BaseWaitingBarIndicatorElement)
Updates the indicator stretch orientation.
Declaration
protected void UpdateIndicatorStretch(BaseWaitingBarIndicatorElement indicator)
Parameters
indicator
BaseWaitingBarIndicatorElement
The indicator.
UpdateOffset(RectangleF)
Updates the offset.
Declaration
protected void UpdateOffset(RectangleF clientRect)
Parameters
clientRect
The client rectangle.