語言

AppWindow.TitleBar 屬性

定義

會看到應用程式視窗的標題欄。

public:
 property AppWindowTitleBar ^ TitleBar { AppWindowTitleBar ^ get(); };
AppWindowTitleBar TitleBar();
public AppWindowTitleBar TitleBar { get; }
var appWindowTitleBar = appWindow.titleBar;
Public ReadOnly Property TitleBar As AppWindowTitleBar

屬性值

應用程式視窗的標題列。

備註

Important

標題列自訂 API 自 1.2 Windows 應用程式 SDK 起部分支援於 Windows 10,Windows 11 則完全支援。 你應該先檢查程式碼中的 AppWindowTitleBar.IsCustomizationSupported 再呼叫這些 API,以確保你的應用程式在其他 Windows 版本上不會當機。 更多資訊請參見 標題列自訂 。

適用於

另請參閱