ThemeResourceDictionary
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Markup
public sealed class ThemeResourceDictionary : ResourceDictionary
A per-theme value table inside ThemeDictionaries. The ThemeKey names the theme the table serves: Light, Dark, HighContrast, the high-contrast polarity keys HighContrastBlack and HighContrastWhite, or Default (the fallback for themes without an exact table).
Remarks: The key lives on this property rather than x:Key because the WPF markup compiler cannot compile keyed children inside a dictionary-typed property of a ResourceDictionary subclass. Set ThemeKey before adding the table to a ThemeDictionary; changing it afterwards takes effect on the next theme change or collection mutation.
Base type: ResourceDictionary (including inherited WPF and .NET members)
Constructors
ThemeResourceDictionary
public ThemeResourceDictionary()
Creates a new ThemeResourceDictionary instance.
Properties
ThemeKey
public string ThemeKey { get; set; }
Gets or sets the theme this table serves: Light, Dark, HighContrast, HighContrastBlack, HighContrastWhite, or Default.