ProgressIndicator Class
Windows Phone
March 22, 2012
Provides methods and properties for interacting with the progress indicator on the system tray on an application page.
Namespace:
Microsoft.Phone.Shell
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
The ProgressIndicator type exposes the following members.
| Name | Description | |
|---|---|---|
|
Dispatcher | (Inherited from DependencyObject.) |
|
IsIndeterminate | Gets or sets a value that indicates whether the progress indicator on the system tray on the current application page is determinate or indeterminate. |
|
IsVisible | Gets or sets the visibility of the progress indicator on the system tray on the current application page. |
|
Text | Gets or sets the text of the progress indicator on the system tray on the current application page. |
|
Value | Gets or sets the value of the progress indicator on the system tray on the current application page. |
| Name | Description | |
|---|---|---|
|
CheckAccess | (Inherited from DependencyObject.) |
|
ClearValue | (Inherited from DependencyObject.) |
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetAnimationBaseValue | (Inherited from DependencyObject.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
GetValue | (Inherited from DependencyObject.) |
|
MemberwiseClone | (Inherited from Object.) |
|
ReadLocalValue | (Inherited from DependencyObject.) |
|
SetValue | (Inherited from DependencyObject.) |
|
ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
IsIndeterminateProperty | The dependency property for IsIndeterminate. |
|
IsVisibleProperty | The dependency property for IsVisible. |
|
TextProperty | The dependency property for Text. |
|
ValueProperty | The dependency property for Value. |
The following code example shows how to use the ProgressIndicator class.
using Microsoft.Phone.Shell; namespace SystemTrayTest { public partial class MainPage : PhoneApplicationPage { ProgressIndicator prog; public MainPage() { InitializeComponent(); SystemTray.SetIsVisible(this, true); SystemTray.SetOpacity(this, 0.5); SystemTray.SetBackgroundColor(this, Colors.Purple); SystemTray.SetForegroundColor(this, Colors.Yellow); prog = new ProgressIndicator(); prog.IsVisible = true; prog.IsIndeterminate = true; prog.Text = "Click me..."; SystemTray.SetProgressIndicator(this, prog); } } }
The following code example shows how to use the ProgressIndicator on the SystemTray from XAML. This code goes inside your PHONE:PHONEAPPLICATIONPAGE element. Note that the IsIndeterminate, IsVisible, Text, and Value attributes can all be data-bound.