May 2010
Intermediate to advanced
1272 pages
61h 18m
English
ProgressBarThe ProgressBar control requires you to set some start properties, such as Minimum, Maximum, and Value. Then you can increase the value at runtime. The following XAML code declares a ProgressBar:
![]()
To update the progress value, a good approach is making this asynchronously. This can be accomplished by invoking the Dispatcher, which is the WPF object responsible for managing threads. This points to the ProgressBar.SetValue to update the progress value. So the first step is to create a custom delegate that matches SetValue’s signature:
The next step is to provide code that updates the progress value. This is just a demonstration loop ...
Read now
Unlock full access