ThemeSettings.CreateForWindowId(WindowId) Method

Definition

Creates a ThemeSettings object that will provide theme information for the given 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

Parameters

windowId
WindowId

The WindowId to use when getting theme information.

Returns

A ThemeSettings object that will provide the theme information.

Remarks

The given WindowId must represent a window that:

  • Is a top-level window
  • AND is on the same process and thread as the caller

For example, you can get a WindowId from the ContentIslandEnvironment.AppWindowId property. You can get a ContentIslandEnvironment object from a XamlRoot object.

Applies to

See also