语言

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

自 Windows 应用 SDK 1.2 以来,游戏栏自定义 API 在 Windows 10 上部分受支持,并且完全支持Windows 11。 在调用这些 API 之前,应在代码中检查 AppWindowTitleBar.IsCustomizationSupported,以确保应用在其他版本的 Windows 上不会崩溃。 有关详细信息,请参阅 标题栏自定义 。

适用于

另请参阅