Langue

ThemeSettings.CreateForWindowId(WindowId) Méthode

Définition

Crée un objet ThemeSettings qui fournira des informations de thème pour l’Objet WindowId donné.

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

Paramètres

windowId
WindowId

WindowId à utiliser lors de l’obtention d’informations sur le thème.

Retours

Objet ThemeSettings qui fournira les informations de thème.

Remarques

Le WindowId donné doit représenter une fenêtre qui :

  • Fenêtre de niveau supérieur
  • AND se trouve sur le même processus et le même thread que l’appelant

Par exemple, vous pouvez obtenir un WindowId à partir de la propriété ContentIslandEnvironment.AppWindowId . Vous pouvez obtenir un objet ContentIslandEnvironment à partir d’un objet XamlRoot .

S’applique à

Voir aussi