Skip to content

kermitfrosch/BusyIndicator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BusyIndicator

BusyIndicator for Windows Presentation Foundation (WPF)

Demo

Indicator Types

Prerequisites:

  • .Net Framework 4.6 or higher
  • .Net Core 3.1
  • .Net 5.0

How to use:

  1. Install the package via NuGet:
Install-Package BusyIndicator
  1. Add resource call to App.xaml:
<Application.Resources>
     <ResourceDictionary Source="pack://application:,,,/BusyIndicator;component/Theme/Default.xaml"/>
</Application.Resources>
  1. Add a reference to the library in your view:
xmlns:busyIndicator="https://github.com/Peoky/BusyIndicator"
  1. Create a BusyMask on top of main view:
<busyindicator:BusyMask x:Name="BusyIndicator" IsBusy="False" IndicatorType="Dashes" BusyContent="Please wait..." >
         
         
          <... MAIN VIEW GOES HERE... >
         
         
</busyIndicator:BusyMask>
  1. Bind or Set IsBusy property:

How to change indicator colors:

Indicator colors can be changed now, All you have to do is overriding the colors on your Window, UserControl or even BusyMask resources as following:

<Window.Resources>
    <SolidColorBrush x:Key="IndicatorForeground" Color="Orange" />
    <SolidColorBrush x:Key="IndicatorBackground" Color="WhiteSmoke" />
</Window.Resources>

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>

Hint:

Not all indicators have background, so that change background might not affect all indicators.

If you like this, give it a * please.

Buy Me A Coffee

About

Busy Indicator for WPF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%