diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-01-11 00:05:04 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-01-11 23:19:25 +0300 |
commit | feecb39b2869948dccc66a593ce0dab5d1b0a582 (patch) | |
tree | 6b36667ea332a38adf6709bfba58a751523242b9 /Xamarin.PropertyEditing.Windows | |
parent | 747eeefbab8a87ad4789eddc81acf065ee6cee95 (diff) |
[Win] Drop ThemeManager
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
3 files changed, 0 insertions, 48 deletions
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<object> 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 @@ <Compile Include="SolidBrushEditorControl.cs" /> <Compile Include="ThicknessEditorControl.cs" /> <Compile Include="StringEditorControl.cs" /> - <Compile Include="Themes\WinThemeManager.cs" /> <Compile Include="TreeViewItemEx.cs" /> <Compile Include="TypeSelectorControl.xaml.cs"> <DependentUpon>TypeSelectorControl.xaml</DependentUpon> |