Share via


StatusBar Class

Definition

Provides methods and properties for interacting with the status bar associated 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 progress.

public ref class StatusBar sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class StatusBar final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class StatusBar
Public NotInheritable Class StatusBar
Inheritance
Object Platform::Object IInspectable StatusBar
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced in v1.0)

Remarks

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

Properties

BackgroundColor

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

BackgroundOpacity

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

ForegroundColor

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

OccludedRect

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

ProgressIndicator

Gets the progress indicator for the status bar.

Methods

GetForCurrentView()

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

HideAsync()

Hides the status bar.

ShowAsync()

Shows the status bar.

Events

Hiding

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

Showing

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

Applies to