Does anybody have a WPF example of updating the ProgressState through the available enum states when progressing through ProgressValue?
I have the following code which binds my progress value to run from 0 to 1:
<Window.TaskbarItemInfo>
<TaskbarItemInfo Description="An app with a taskbar info description"
ProgressValue="{Binding Count}" ProgressState="Normal"/>
</Window.TaskbarItemInfo>
But, what is a good way to go from None to Normal to None or other flows: None-Normal-Paused-Normal-None. The code above shows the progress bar on the left at 0% and then finishes at 100% (1). I imagine I could bind this with a converter to another property hanging of my ViewModel, but wanted to see if anyone had any slicker solutions.
Thanks!
ProgressValue is double use value from 0 to 1
In the same way that you are binding the ProgressValue, you can also bind the ProgressState. The type of the ProgressState is an enum called TaskbarItemProgressState, which includes the states you already mentioned.
I think the 'slickest' ways to do this are the ways you already mentioned, either with a converter or manually