I would like to use a progressbar in a simple way. I have a query that is run to return data to a grid when a user clicks a button. I would like to start the progressbar when the button is clicked and stop the progressbar when the data is returned to the grid.
I just want the progressbar to continue on (IsIndeterminate=”True”) to show that there is actually something happening.
Is there any way to bind the start and stop of the progressbar to properties or commands in my view model?
Thanks for any thoughts.
You could expose a property that you then use to trigger the visibility of the
ProgressBar, but you’re better off using a control that encompasses a progress bar and exposes a property that turns it on/off. For example, theBusyIndicatorin the Extended WPF Toolkit.