ThemeSettings.CreateForWindowId(WindowId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for