Windows Dev Center

BackgroundWorker.ProgressChanged Event

Occurs when ReportProgress is called.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public event ProgressChangedEventHandler ProgressChanged

This event is raised when you call the ReportProgress method.

The following code example demonstrates the use of the ProgressChanged event to report the progress of a background operation to the user. To view the complete code for this sample, see How to use a background worker for Windows Phone 8.


private void bw_ProgressChanged(object sender, ProgressChangedEventArgs e)
{
    this.tbProgress.Text = (e.ProgressPercentage.ToString() + "%");
}


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft