ThemeSettings.CreateForWindowId(WindowId) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 ThemeSettings 对象,该对象将为给定 的 WindowId 提供主题信息。
public:
static ThemeSettings ^ CreateForWindowId(WindowId windowId);
static ThemeSettings CreateForWindowId(WindowId const& windowId);
public static ThemeSettings CreateForWindowId(WindowId windowId);
function createForWindowId(windowId)
Public Shared Function CreateForWindowId (windowId As WindowId) As ThemeSettings
参数
返回
提供 主题信息的 ThemeSettings 对象。
注解
给定 的 WindowId 必须表示以下窗口:
- 是顶级窗口
- AND 与调用方位于同一进程和线程上
例如,可以从 ContentIslandEnvironment.AppWindowId 属性获取 WindowId。 可以从 XamlRoot 对象获取 ContentIslandEnvironment 对象。