Once the project gets created, follow these steps to add a progress indicator to the application's UI:
- Open the MainWindow.xaml, and replace the existing Grid panel with a StackPanel, so that, we can add our controls stacked vertically.
- As shown in the following code snippet, add three ProgressBar controls in the StackPanel:
<StackPanel Margin="10"> <TextBlock Text="Progress Indicator set at: 20%" /> <ProgressBar Height="30" Margin="0 4" Minimum="0" Maximum="100" Value="20" /> <TextBlock Text="Progress Indicator set at: 70%" /> <ProgressBar Height="30" Margin="0 4" Minimum="0" Maximum="100" Value="70" /> ...