In Winforms I could set the ProgressBarStyle of a progress bar to Marqee, and that would have the progress bar incriment on its own without having to be set, for processes where I don't know how long its going to take, and no good way to report back to the UI.
I would like to do the same in WPF, but I can't find a way to pull it off short of hosting a winform progress bar, which seems counter productive.
How can I pull this off in WPF? Do I have to host a winform progress bar?
The ProgressBar tag in XAML represents a WPF ProgressBar control. The Width and Height properties represent the width and the height of a ProgressBar. The Name property represents the name of the control, which is a unique identifier of a control.
Marquee. Indicates progress by continuously scrolling a block across a ProgressBar in a marquee fashion. Use Marquee when you can't specify a quantity of progress, but still need to indicate that progress is being made. Use the MarqueeAnimationSpeed property to control the speed of the ProgressBar.
I think you simply want to set the IsIndeterminate property of the ProgressBar to true. (See this article, which also has a nice example of a fancy circular progress indicator.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With