SetIsVisible Method

SystemTray.SetIsVisible Method

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

Sets the value of the IsVisible attached property for a given phone application page.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

'Declaration
Public Shared Sub SetIsVisible ( _
	element As DependencyObject, _
	isVisible As Boolean _
)

Parameters

element
Type: System.Windows.DependencyObject
The page for which to set the IsVisible attached property.
isVisible
Type: System.Boolean
true to display the system tray; false to hide the system tray.

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

The following code example shows how to use the SystemTray class in conjunction with the ProgressIndicator class.

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.5)
        SystemTray.SetBackgroundColor(Me, Colors.Blue)
        SystemTray.SetForegroundColor(Me, Colors.Yellow)

        prog = new ProgressIndicator()
        prog.IsVisible = true
        prog.IsIndeterminate = true
        prog.Text = "Click me..."

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft