static ThemeManager() { _actualThemeChangedEventArgs = new RoutedEventArgs(ActualThemeChangedEvent); MenuDropAlignmentHelper.EnsureStandardPopupAlignment(); if (DesignMode.DesignModeEnabled) { _ = GetDefaultThemeDictionary(LightKey); _ = GetDefaultThemeDictionary(DarkKey); _ = GetDefaultThemeDictionary(HighContrastKey); } }
static ThemeManager() { ThemeProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(OnThemeChanged)); _actualThemeChangedEventArgs = new RoutedEventArgs(ActualThemeChangedEvent); MenuDropAlignmentHelper.EnsureStandardPopupAlignment(); if (DesignMode.DesignModeEnabled) { _ = GetDefaultThemeDictionary(LightKey); _ = GetDefaultThemeDictionary(DarkKey); _ = GetDefaultThemeDictionary(HighContrastKey); } }
static ThemeManager() { _actualThemeChangedEventArgs = new RoutedEventArgs(ActualThemeChangedEvent); MenuDropAlignmentHelper.EnsureStandardPopupAlignment(); }