BusyIndicator for WPF with multiple indicator types.
- .Net Framework 4.5 or higher
- .Net Core 3.1 or higher
- Install the package via NuGet
Install-Package BusyIndicator
- Add resource to App.xaml
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/BusyIndicator;component/Theme/Default.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
- Add a reference to the library in your view
xmlns:busyindicator="clr-namespace:BusyIndicator;assembly=BusyIndicator"
- Create a BusyMask on top of main view
<busyindicator:BusyMask x:Name="BusyIndicator" IsBusy="False" IndicatorType="Dashes" BusyContent="Please wait..." FocusAfterBusy="{Binding ElementName = MyTextBox}" >
<... main view goes here ... >
</busyindicator:BusyMask>
- Set
IsBusy
property value totrue
orfalse
or bind it
BusyIndicator.IsBusy = true; or BusyIndicator.IsBusy = false;
If you like this, give it a * please.