From feecb39b2869948dccc66a593ce0dab5d1b0a582 Mon Sep 17 00:00:00 2001 From: Eric Maupin Date: Thu, 10 Jan 2019 16:05:04 -0500 Subject: [Win] Drop ThemeManager --- .../PropertyEditorPanel.cs | 3 -- .../Themes/WinThemeManager.cs | 44 ---------------------- .../Xamarin.PropertyEditing.Windows.csproj | 1 - 3 files changed, 48 deletions(-) delete mode 100644 Xamarin.PropertyEditing.Windows/Themes/WinThemeManager.cs (limited to 'Xamarin.PropertyEditing.Windows') diff --git a/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs b/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs index 7355e6e..18c332d 100644 --- a/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs +++ b/Xamarin.PropertyEditing.Windows/PropertyEditorPanel.cs @@ -77,9 +77,6 @@ namespace Xamarin.PropertyEditing.Windows get { return (PropertyArrangeMode) GetValue (ArrangeModeProperty); } set { SetValue (ArrangeModeProperty, value); } } - - public static PropertyEditing.Themes.WinThemeManager ThemeManager = new PropertyEditing.Themes.WinThemeManager(); - public void Select (IEnumerable selectedItems) { if (selectedItems == null) diff --git a/Xamarin.PropertyEditing.Windows/Themes/WinThemeManager.cs b/Xamarin.PropertyEditing.Windows/Themes/WinThemeManager.cs deleted file mode 100644 index 0bca086..0000000 --- a/Xamarin.PropertyEditing.Windows/Themes/WinThemeManager.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Drawing; -using System.IO; -using System.Reflection; -using System.Resources; -using System.Windows; -using System.Windows.Baml2006; -using System.Xaml; - -namespace Xamarin.PropertyEditing.Themes -{ - - public class WinThemeManager : BaseThemeManager - { - ResourceDictionary dark = new ResourceDictionary () { - Source = new Uri ("pack://application:,,,/Xamarin.PropertyEditing.Windows;component/Themes/VS.Dark.xaml") - }; - ResourceDictionary light = new ResourceDictionary () { - Source = new Uri ("pack://application:,,,/Xamarin.PropertyEditing.Windows;component/Themes/VS.Light.xaml") - }; - - protected override void SetTheme () - { - switch (Theme) { - case PropertyEditorTheme.Dark: - Application.Current.Resources.MergedDictionaries.Remove (light); - Application.Current.Resources.MergedDictionaries.Add (dark); - break; - - case PropertyEditorTheme.Light: - Application.Current.Resources.MergedDictionaries.Remove (dark); - Application.Current.Resources.MergedDictionaries.Add (light); - break; - - case PropertyEditorTheme.None: - Application.Current.Resources.MergedDictionaries.Remove (dark); - Application.Current.Resources.MergedDictionaries.Remove (light); - break; - } - } - } -} diff --git a/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj b/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj index 6f259d5..08a3466 100644 --- a/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj +++ b/Xamarin.PropertyEditing.Windows/Xamarin.PropertyEditing.Windows.csproj @@ -140,7 +140,6 @@ - TypeSelectorControl.xaml -- cgit v1.2.3