AppWindowTitleBar 類別

定義

代表應用程式視窗的標題列。

public ref class AppWindowTitleBar sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppWindowTitleBar final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppWindowTitleBar
Public NotInheritable Class AppWindowTitleBar
繼承
Object Platform::Object IInspectable AppWindowTitleBar
屬性

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)

屬性

BackgroundColor

取得或設定標題列背景的色彩。

ButtonBackgroundColor

取得或設定標題列按鈕的背景色彩。

ButtonForegroundColor

取得或設定標題列按鈕的前景色彩。

ButtonHoverBackgroundColor

取得或設定標題列按鈕在指標上方時的背景色彩。

ButtonHoverForegroundColor

取得或設定標題列按鈕在指標上方時的前景色彩。

ButtonInactiveBackgroundColor

取得或設定處於非使用中狀態時標題列按鈕的背景色彩。

ButtonInactiveForegroundColor

取得或設定處於非使用中狀態時,標題欄按鈕的前景色彩。

ButtonPressedBackgroundColor

取得或設定按下標題列按鈕的背景色彩。

ButtonPressedForegroundColor

取得或設定按下標題列按鈕的前景色彩。

ExtendsContentIntoTitleBar

取得或設定值,指定這個標題列是否應該取代預設窗口標題列。

ForegroundColor

取得或設定標題列前景的色彩。

InactiveBackgroundColor

取得或設定處於非使用中狀態時標題列背景的色彩。

InactiveForegroundColor

取得或設定處於非使用中狀態時標題列前景的色彩。

IsVisible

取得值,指定這個標題列是否可見。

方法

GetPreferredVisibility()

傳回標題列慣用的可見度模式。

GetTitleBarOcclusions()

取得標題列遮蔽的清單。

SetPreferredVisibility(AppWindowTitleBarVisibility)

設定標題列的慣用可見度模式。

重要

AppWindowTitleBar.SetPreferredVisibility API 是有限存取功能的一部分, (請參閱 LimitedAccessFeatures 類別) 。 如需詳細資訊或要求解除鎖定令牌,請連絡 Microsoft 支援服務

適用於