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物件。