Loading indicator for WPF applications.
$ dotnet add package BusyIndicatorsBusyIndicator for Windows Presentation Foundation (WPF)
Note NuGet address has changed.
<Application.Resources>
<ResourceDictionary Source="pack://application:,,,/BusyIndicator;component/Theme/Default.xaml"/>
</Application.Resources>
<busyIndicator:BusyMask x:Name="BusyIndicator"
IsBusy="False"
IndicatorType="Dashes"
BusyContent="Please wait..."
BusyContentMargin="0,20,0,0"
IsBusyAtStartup="False" >
<... MAIN VIEW GOES HERE... >
</busyIndicator:BusyMask>
IsBusy property.You can now customize the indicator sizes:
IndicatorScaleX & IndicatorScaleY properties:Override the IndicatorForeground & IndicatorBackground properties:
You can also use gradients:
<LinearGradientBrush x:Key="IndicatorForeground" StartPoint="0.5,0" EndPoint="0.5,1"> <GradientStop Offset="1" Color="#eaafc8" /> <GradientStop Offset="0" Color="#654ea3" /> </LinearGradientBrush>Not all indicators have background, so changing the
IndicatorBackgroundmay not affect all indicators.
If you like this, feel free to show your support!