Class WaitingBarContentElement
Represents the content element of RadWaitingBarElement.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class WaitingBarContentElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
WaitingBarContentElement()
Declaration
public WaitingBarContentElement()
Fields
isBackwards
Declaration
protected bool isBackwards
Field Value
System.Boolean
|
offset
Declaration
protected float offset
Field Value
System.Single
|
waitingFirstRun
Declaration
protected bool waitingFirstRun
Field Value
System.Boolean
|
WaitingStyleProperty
The waiting style property of WaitingBarContentElement
Declaration
public static RadProperty WaitingStyleProperty
Field Value
RadProperty
|
Properties
IsOldWaitingStyle
Returns true if WaitingStyle is Indeterminate, Throbber or Dash.
Declaration
protected bool IsOldWaitingStyle { get; }
Property Value
System.Boolean
|
IsWaiting
Indicates whether the element is currently waiting
Declaration
public bool IsWaiting { get; set; }
Property Value
System.Boolean
|
SeparatorElement
Gets an instance of the WaitingBarSeparatorElement class that represents the waiting bar separator element
Declaration
public WaitingBarSeparatorElement SeparatorElement { get; }
Property Value
WaitingBarSeparatorElement
|
TextElement
Gets an instance of the WaitingBarTextElement class that represents the waiting bar text element
Declaration
public WaitingBarTextElement TextElement { get; }
Property Value
WaitingBarTextElement
|
WaitingDirection
Gets and sets the direction of waiting. Range: Bottom, Left, Right, Top
Declaration
public ProgressOrientation WaitingDirection { get; set; }
Property Value
ProgressOrientation
|
WaitingIndicators
Gets a collection of BaseWaitingBarIndicatorElement elements which contains all waiting indicators of RadWaitingBar
Declaration
public WaitingBarIndicatorCollection WaitingIndicators { get; }
Property Value
WaitingBarIndicatorCollection
|
WaitingStyle
Gets or sets the style of the WaitingBarElement.
Declaration
public WaitingBarStyles WaitingStyle { get; set; }
Property Value
WaitingBarStyles
|
Methods
AddIndicatorStep(Single, Int32)
Adds the indicator step.
Declaration
protected float AddIndicatorStep(float step, int index)
Parameters
System.Single
step
The step. |
System.Int32
index
The index of the indicator. |
Returns
System.Single
|
ArrangeIndeterminateIndicatorElements(RectangleF)
Arranges the indeterminate indicator elements.
Declaration
protected void ArrangeIndeterminateIndicatorElements(RectangleF clientRect)
Parameters
System.Drawing.RectangleF
clientRect
The client rectangle. |
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
CalculateIndicatorStep(RectangleF)
Calculates the indicator step.
Declaration
protected float CalculateIndicatorStep(RectangleF clientRect)
Parameters
System.Drawing.RectangleF
clientRect
The client rectangle. |
Returns
System.Single
|
CreateChildElements()
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
WaitingBarSeparatorElement
element
The element. |
System.Drawing.RectangleF
clientRect
The client rectangle. |
Returns
System.Drawing.RectangleF
|
GetReversedDirection(ProgressOrientation)
Gets the reversed direction.
Declaration
public ProgressOrientation GetReversedDirection(ProgressOrientation direction)
Parameters
ProgressOrientation
direction
The direction. |
Returns
ProgressOrientation
|
GetThrobberIndicatorElementFinalSize(WaitingBarIndicatorElement, RectangleF)
Gets the final size of the throbber indicator element.
Declaration
protected RectangleF GetThrobberIndicatorElementFinalSize(WaitingBarIndicatorElement element, RectangleF clientRect)
Parameters
WaitingBarIndicatorElement
element
The element. |
System.Drawing.RectangleF
clientRect
The client rectangle. |
Returns
System.Drawing.RectangleF
|
IncrementOffset(Int32)
Increments the offset of the indicator
Declaration
public void IncrementOffset(int value)
Parameters
System.Int32
value
The value. |
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
IsVertical()
Determines whether this instance is vertical.
Declaration
public bool IsVertical()
Returns
System.Boolean
|
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
MoveIndicatorElement(WaitingBarIndicatorElement, RectangleF, ProgressOrientation)
Moves the indicator element.
Declaration
protected RectangleF MoveIndicatorElement(WaitingBarIndicatorElement element, RectangleF clientRect, ProgressOrientation waitingDirection)
Parameters
WaitingBarIndicatorElement
element
The element. |
System.Drawing.RectangleF
clientRect
The client rectangle. |
ProgressOrientation
waitingDirection
The waiting direction. |
Returns
System.Drawing.RectangleF
|
ResetWaiting()
Resets the waiting state of the indicator.
Declaration
public virtual void ResetWaiting()
SetClipping(Graphics)
Declaration
protected override void SetClipping(Graphics rawGraphics)
Parameters
System.Drawing.Graphics
rawGraphics
|
Overrides
SetDashInitialPosition(WaitingBarSeparatorElement, RectangleF)
Sets the dash initial position.
Declaration
protected RectangleF SetDashInitialPosition(WaitingBarSeparatorElement element, RectangleF clientRect)
Parameters
WaitingBarSeparatorElement
element
The element. |
System.Drawing.RectangleF
clientRect
The client rectangle. |
Returns
System.Drawing.RectangleF
|
SetElementsVisibility(WaitingBarStyles)
Sets the elements visibility.
Declaration
protected void SetElementsVisibility(WaitingBarStyles style)
Parameters
WaitingBarStyles
style
The style. |
SetIndicatorsVisibility(ElementVisibility)
Sets the indicators visibility.
Declaration
protected void SetIndicatorsVisibility(ElementVisibility visibility)
Parameters
ElementVisibility
visibility
The visibility. |
UpdateBorderAndFillVisibility(Boolean)
Declaration
protected virtual void UpdateBorderAndFillVisibility(bool wasPrevWaitingStyleOld)
Parameters
System.Boolean
wasPrevWaitingStyleOld
|
UpdateElementsState(WaitingBarIndicatorElement)
Updates the vertical state property of the indicator.
Declaration
protected void UpdateElementsState(WaitingBarIndicatorElement indicator)
Parameters
WaitingBarIndicatorElement
indicator
The indicator. |
UpdateIndicatorStretch(BaseWaitingBarIndicatorElement)
Updates the indicator stretch orientation.
Declaration
protected void UpdateIndicatorStretch(BaseWaitingBarIndicatorElement indicator)
Parameters
BaseWaitingBarIndicatorElement
indicator
The indicator. |
UpdateOffset(RectangleF)
Updates the offset.
Declaration
protected void UpdateOffset(RectangleF clientRect)
Parameters
System.Drawing.RectangleF
clientRect
The client rectangle. |