Table of Contents

Class BusyIndicator

Namespace
Ecng.Xaml
Assembly
StockSharp.Xaml.dll

Displays a busy overlay on top of the content and toggles visual states based on the IsBusy flag.

[StyleTypedProperty(Property = "OverlayStyle", StyleTargetType = typeof(Rectangle))]
public class BusyIndicator : ContentControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild
Inheritance
BusyIndicator
Implements
Inherited Members
Extension Methods

Constructors

BusyIndicator()

public BusyIndicator()

Fields

BusyContentProperty

Content displayed while the control is busy.

public static readonly DependencyProperty BusyContentProperty

Field Value

DependencyProperty

BusyContentTemplateProperty

Template to render the BusyContent.

public static readonly DependencyProperty BusyContentTemplateProperty

Field Value

DependencyProperty

IsBusyProperty

Identifies the IsBusy dependency property.

public static readonly DependencyProperty IsBusyProperty

Field Value

DependencyProperty

OverlayStyleProperty

Identifies the OverlayStyle dependency property.

public static readonly DependencyProperty OverlayStyleProperty

Field Value

DependencyProperty

Properties

BusyContent

Content displayed while the control is busy.

public object BusyContent { get; set; }

Property Value

object

BusyContentTemplate

Template to render the BusyContent.

public DataTemplate BusyContentTemplate { get; set; }

Property Value

DataTemplate

IsBusy

Gets or sets a value indicating whether the busy overlay is shown.

public bool IsBusy { get; set; }

Property Value

bool

IsContentVisible

Gets or sets a value indicating whether the busy content should be visible.

protected bool IsContentVisible { get; set; }

Property Value

bool

OverlayStyle

Gets or sets the style applied to the overlay element that covers the content when busy.

public Style OverlayStyle { get; set; }

Property Value

Style

Methods

ChangeVisualState(bool)

Switches the control's visual state to reflect the current values of IsBusy and IsContentVisible.

protected virtual void ChangeVisualState(bool useTransitions)

Parameters

useTransitions bool

True to use visual transitions; otherwise false.

OnApplyTemplate()

public override void OnApplyTemplate()

OnIsBusyChanged(DependencyPropertyChangedEventArgs)

Called when the IsBusy property value changes.

protected virtual void OnIsBusyChanged(DependencyPropertyChangedEventArgs e)

Parameters

e DependencyPropertyChangedEventArgs