Updated BusyIndicator (markdown)

master
DianeXceed 9 years ago
parent
commit
c310539855
  1. 40
      BusyIndicator.md

40
BusyIndicator.md

@ -7,23 +7,23 @@ BusyIndicator makes it easy to let the user know when an application is busy. S
## Usage ## Usage
**Add namespace:** **Add namespace:**
{{ ```
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
}} ```
**Default Settings:** **Default Settings:**
{{ ```
<xctk:BusyIndicator IsBusy="True" > <xctk:BusyIndicator IsBusy="True" >
<ContentControl Style="{StaticResource SampleContent}"/> <ContentControl Style="{StaticResource SampleContent}"/>
</xctk:BusyIndicator> </xctk:BusyIndicator>
}} ```
**Custom Message:** **Custom Message:**
{{ ```
<xctk:BusyIndicator IsBusy="True" BusyContent="Downloading email..." > <xctk:BusyIndicator IsBusy="True" BusyContent="Downloading email..." >
<ContentControl Style="{StaticResource SampleContent}"/> <ContentControl Style="{StaticResource SampleContent}"/>
</xctk:BusyIndicator> </xctk:BusyIndicator>
}} ```
**Custom Content:** **Custom Content:**
{{ ```
<xctk:BusyIndicator IsBusy="True" DisplayAfter="0"> <xctk:BusyIndicator IsBusy="True" DisplayAfter="0">
<xctk:BusyIndicator.BusyContentTemplate> <xctk:BusyIndicator.BusyContentTemplate>
<DataTemplate> <DataTemplate>
@ -56,21 +56,23 @@ xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
</xctk:BusyIndicator.ProgressBarStyle> </xctk:BusyIndicator.ProgressBarStyle>
<ContentControl Style="{StaticResource SampleContent}"/> <ContentControl Style="{StaticResource SampleContent}"/>
</xctk:BusyIndicator> </xctk:BusyIndicator>
}} ```
## Properties ## Properties
|| Property || Description | Property | Description |
| BusyContent | Gets or sets the busy content to display to the user. | --- | --- |
| BusyContentTemplate | Gets or sets the DataTemplate to use for displaying the busy content to the user. | BusyContent | Gets or sets the busy content to display to the user. |
| DisplayAfter | Gets or sets the time interval that the busy content is delayed before being displayed. | BusyContentTemplate | Gets or sets the DataTemplate to use for displaying the busy content to the user. |
| FocusAfterBusy | Gets or sets a control that should get focus when the busy indicator disappears. | DisplayAfter | Gets or sets the time interval that the busy content is delayed before being displayed. |
| IsBusy | Gets or sets a value indicating whether the busy indicator should be shown. | FocusAfterBusy | Gets or sets a control that should get focus when the busy indicator disappears. |
| IsContentVisible | Gets or sets a value indicating whether the BusyContent is visible. | IsBusy | Gets or sets a value indicating whether the busy indicator should be shown. |
| OverlayStyle | Gets or sets a Style object representing the style to use for the overlay. By default, null. | IsContentVisible | Gets or sets a value indicating whether the BusyContent is visible. |
| ProgressBarStyle | Gets or sets a Style object representing the style to use for the progress bar. By default, null. | OverlayStyle | Gets or sets a Style object representing the style to use for the overlay. By default, null. |
| ProgressBarStyle | Gets or sets a Style object representing the style to use for the progress bar. By default, null. |
Here is a blog post describing how to use the BusyIndicator in multi-threaded scenarios: Here is a blog post describing how to use the BusyIndicator in multi-threaded scenarios:
[http://elegantcode.com/2011/10/07/extended-wpf-toolkitusing-the-busyindicator/](http://elegantcode.com/2011/10/07/extended-wpf-toolkitusing-the-busyindicator/) [http://elegantcode.com/2011/10/07/extended-wpf-toolkitusing-the-busyindicator/](http://elegantcode.com/2011/10/07/extended-wpf-toolkitusing-the-busyindicator/)
**Support this project, check out the [Plus Edition](https://xceed.com/xceed-toolkit-plus-for-wpf/).** ---
--- **Support this project, check out the [Plus Edition](https://xceed.com/xceed-toolkit-plus-for-wpf/).**
Loading…
Cancel
Save