ProgressButton is animated progress bar activated by clicking button.
First add HandyControl refrence
xmlns:hc="https://handyorg.github.io/handycontrol"
then in your xaml
<hc:ProgressButton Progress="0" Content="Upload"/>
or you can use ToggleButton instead of ProgressButton
<ToggleButton Style="{StaticResource ToggleButtonLoading}" Progress="0" Content="Upload"/>
To use Brushes, you should set Style
Available Styles [ProgressButton] | Available Styles [ToggleButton] |
---|---|
ProgressButtonPrimary | ToggleButtonLoading |
ProgressButtonSuccess | ToggleButtonLoadingPrimary |
ProgressButtonInfo | ToggleButtonLoadingSuccess |
ProgressButtonWarning | ToggleButtonLoadingInfo |
ProgressButtonDanger | ToggleButtonLoadingWarning |
ProgressButtonDefault Available Only in Custom Version | ToggleButtonLoadingDanger |
Available Properties |
---|
Style |
IsChecked |
Progress |
Content |