Class BusyIndicator
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
BusyContentTemplateProperty
Template to render the BusyContent.
public static readonly DependencyProperty BusyContentTemplateProperty
Field Value
IsBusyProperty
Identifies the IsBusy dependency property.
public static readonly DependencyProperty IsBusyProperty
Field Value
OverlayStyleProperty
Identifies the OverlayStyle dependency property.
public static readonly DependencyProperty OverlayStyleProperty
Field Value
Properties
BusyContent
Content displayed while the control is busy.
public object BusyContent { get; set; }
Property Value
BusyContentTemplate
Template to render the BusyContent.
public DataTemplate BusyContentTemplate { get; set; }
Property Value
IsBusy
Gets or sets a value indicating whether the busy overlay is shown.
public bool IsBusy { get; set; }
Property Value
IsContentVisible
Gets or sets a value indicating whether the busy content should be visible.
protected bool IsContentVisible { get; set; }
Property Value
OverlayStyle
Gets or sets the style applied to the overlay element that covers the content when busy.
public Style OverlayStyle { get; set; }
Property Value
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
boolTrue 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)