StatusBar 類別

定義

提供與應用程式檢視相關聯的狀態列互動的方法和屬性, (視窗) 。 狀態列是系統在上邊緣呈現的使用者體驗, (通常) 螢幕,讓使用者能夠控制裝置的行為,而且可以呈現進度。

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
繼承
Object Platform::Object IInspectable StatusBar
屬性

Windows 需求

裝置系列
Windows Mobile Extension SDK (已於 10.0.10240.0 引進)
API contract
Windows.Phone.PhoneContract (已於 v1.0 引進)

備註

若要取得此類型的物件,請呼叫 StatusBar.GetForCurrentView

屬性

BackgroundColor

取得或設定狀態列的背景色彩。 不會使用色彩的 Alpha 色板。

BackgroundOpacity

取得或設定狀態列的背景色彩不透明度。

ForegroundColor

取得或設定狀態列的前景色彩。 不會使用色彩的 Alpha 色板。

OccludedRect

取得狀態列目前遮蔽的核心視窗區域。

ProgressIndicator

取得狀態列的進度指標。

方法

GetForCurrentView()

取得目前視窗的狀態列, (應用程式檢視) 。

HideAsync()

隱藏狀態列。

ShowAsync()

顯示狀態列。

事件

Hiding

當狀態列正在隱藏時,就會引發此事件。

Showing

當顯示狀態列時,就會引發此事件。

適用於