ThemeManager Class
Manages theme resources created by a ThemeGenerator.
public static class ThemeManager
- Inheritance:
- object object
Methods
LoadResources(IResourceDictionary?, ThemeDefinition?)
Loads theme resources generated by a ThemeGenerator into a target Avalonia.Controls.IResourceDictionary.
public static void LoadResources(IResourceDictionary? targetDictionary = null, ThemeDefinition? definition = null)
Parameter | Type | Description |
---|---|---|
targetDictionary | IResourceDictionary | The Avalonia.Controls.IResourceDictionary into which generated theme resources should be placed. |
definition | ThemeDefinition | The ThemeDefinition that specifies options for theme generation. |
UnloadResources(IResourceDictionary?)
Unloads generated theme resources from a target Avalonia.Controls.IResourceDictionary.
public static void UnloadResources(IResourceDictionary? targetDictionary = null)
Parameter | Type | Description |
---|---|---|
targetDictionary | IResourceDictionary | The Avalonia.Controls.IResourceDictionary into which generated theme resources should be placed. |