BusyIndicator

Ecng.Xaml

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

Inherits: ContentControl

Properties

BusyContent
public object BusyContent { get; set; }
value = busyIndicator.BusyContent
busyIndicator.BusyContent = value

Content displayed while the control is busy.

BusyContentTemplate
public DataTemplate BusyContentTemplate { get; set; }
value = busyIndicator.BusyContentTemplate
busyIndicator.BusyContentTemplate = value

Template to render the BusyContent.

IsBusy
public bool IsBusy { get; set; }
value = busyIndicator.IsBusy
busyIndicator.IsBusy = value

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

IsContentVisible
protected bool IsContentVisible { get; set; }
value = busyIndicator.IsContentVisible
busyIndicator.IsContentVisible = value

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

OverlayStyle
public Style OverlayStyle { get; set; }
value = busyIndicator.OverlayStyle
busyIndicator.OverlayStyle = value

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

Methods

ChangeVisualState
protected virtual void ChangeVisualState(bool useTransitions)
busyIndicator.ChangeVisualState(useTransitions)

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

useTransitions
True to use visual transitions; otherwise false.
OnApplyTemplate
public override void OnApplyTemplate()
busyIndicator.OnApplyTemplate()

Builds the visual tree for the LayoutTransformer control when a new template is applied.

OnIsBusyChanged
protected virtual void OnIsBusyChanged(DependencyPropertyChangedEventArgs e)
busyIndicator.OnIsBusyChanged(e)

Called when the IsBusy property value changes.

Fields

BusyContentProperty
public static readonly DependencyProperty BusyContentProperty
value = BusyIndicator.BusyContentProperty

Content displayed while the control is busy.

BusyContentTemplateProperty
public static readonly DependencyProperty BusyContentTemplateProperty
value = BusyIndicator.BusyContentTemplateProperty

Template to render the BusyContent.

IsBusyProperty
public static readonly DependencyProperty IsBusyProperty
value = BusyIndicator.IsBusyProperty

Identifies the IsBusy dependency property.

OverlayStyleProperty
public static readonly DependencyProperty OverlayStyleProperty
value = BusyIndicator.OverlayStyleProperty

Identifies the OverlayStyle dependency property.