WPF : Progress Bar update in Parallel.Foreach
问题 I am trying to update the progress bar while running a Parallel.Foreach , but during execution nothing happens. Progressbar gets updated only when the For loop end. How can I make this code work? XAML <StackPanel> <Grid x:Name="LoadProgressGrid" Height="100" Visibility="Visible"> <ProgressBar x:Name="LoadProgress" Maximum="100" Minimum="1" /> <TextBlock Margin="0,0,0,-5" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16"><Run Text="Import Progress"/></TextBlock> </Grid>