ProgressIndicator.IsIndeterminate Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether the progress indicator on the system tray on the current application page is determinate or indeterminate.

Namespace: Microsoft.Phone.Shell
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Property IsIndeterminate As Boolean
public bool IsIndeterminate { get; set; }
<object IsIndeterminate="bool" .../>

Property Value

Type: System..::.Boolean
true if the progress indicator is indeterminate; false if the progress bar is determinate.

Remarks

When this property is true, the progress bar displays a repeating pattern to indicate generic progress. In this case, the Value property is ignored.

The following screenshot shows an indeterminate progress indicator scrolling across the top of the screen.

The system tray is also referred to as the status bar.

Examples

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);

            prog = new ProgressIndicator();
            prog.IsVisible = true;
            prog.IsIndeterminate = true;

            SystemTray.SetProgressIndicator(this, prog);
        }
    }
}
Imports Microsoft.Phone.Shell

Partial Public Class MainPage
    Inherits PhoneApplicationPage

    Dim prog As ProgressIndicator

    Public Sub New()
        InitializeComponent()

        SystemTray.SetIsVisible(Me, true)
        SystemTray.SetOpacity(Me, 0)

        prog = new ProgressIndicator()
        prog.IsVisible = true
        prog.IsIndeterminate = true

        SystemTray.SetProgressIndicator(Me, prog)
    End Sub
End Class

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

ProgressIndicator Class

Microsoft.Phone.Shell Namespace

SystemTray

PhoneApplicationPage

Other Resources

Dependency Properties Overview

Attached Properties Overview