BusyIndicator

Ecng.Xaml

显示内容上方的繁忙叠加, 并切换基于 IsBusy 旗的可视状态 。

继承自: ContentControl

属性

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

控件忙时显示内容 。

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

获取或设置一个数值,显示是否显示繁忙的上覆。

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

获取或设置一个数值,显示繁忙的内容是否应该可见。

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

获取或设置用于覆盖繁忙时内容的覆叠元素的样式.

方法

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

切换控件的可视状态,以反映IsBusy和IsContentVisible的当前值.

useTransitions
真实使用视觉过渡; 否则是虚假的 。
OnApplyTemplate
public override void OnApplyTemplate()
busyIndicator.OnApplyTemplate()

当应用了新的模板时,为 LayoutTransformer 控制构建可视化树 。

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

当 IsBusy 属性值改变时调用 。

字段

BusyContentProperty
public static readonly DependencyProperty BusyContentProperty
value = BusyIndicator.BusyContentProperty

控件忙时显示内容 。

BusyContentTemplateProperty
public static readonly DependencyProperty BusyContentTemplateProperty
value = BusyIndicator.BusyContentTemplateProperty

Template to render the BusyContent.

IsBusyProperty
public static readonly DependencyProperty IsBusyProperty
value = BusyIndicator.IsBusyProperty

确定IsBusy的受抚养财产。

OverlayStyleProperty
public static readonly DependencyProperty OverlayStyleProperty
value = BusyIndicator.OverlayStyleProperty

确定OverlayStyle的受抚养财产。