StatusBar StatusBar StatusBar StatusBar StatusBar Class

Definition

Provides methods and properties for interacting with the status bar assocaited with an app view (window). The status bar is a user experience that the system presents on the top edge (typically) of the screen that allows users to control behavior of the device and can present progres.

public : sealed class StatusBar
struct winrt::Windows::UI::ViewManagement::StatusBar
public sealed class StatusBar
Public NotInheritable Class StatusBar
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)

Remarks

To obtain an object of this type, call StatusBar.GetForCurrentView.

Properties

BackgroundColor BackgroundColor BackgroundColor BackgroundColor BackgroundColor

Gets or sets the background color of the status bar. The alpha channel of the color is not used.

BackgroundOpacity BackgroundOpacity BackgroundOpacity BackgroundOpacity BackgroundOpacity

Gets or sets the opacity of the background color of the status bar.

ForegroundColor ForegroundColor ForegroundColor ForegroundColor ForegroundColor

Gets or sets the foreground color of the status bar. The alpha channel of the color is not used.

OccludedRect OccludedRect OccludedRect OccludedRect OccludedRect

Gets the region of the core window currently occluded by the status bar.

ProgressIndicator ProgressIndicator ProgressIndicator ProgressIndicator ProgressIndicator

Gets the progress indicator for the status bar.

Methods

GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView()

Gets the status bar for the current window (app view).

HideAsync() HideAsync() HideAsync() HideAsync() HideAsync()

Hides the status bar.

ShowAsync() ShowAsync() ShowAsync() ShowAsync() ShowAsync()

Shows the status bar.

Events

Hiding Hiding Hiding Hiding Hiding

This event is raised when the status bar is being hidden.

Showing Showing Showing Showing Showing

This event is raised when the status bar is being shown.