コード例 #1
0
ファイル: ThemeManager.cs プロジェクト: itsesh/DaxStudio
        private void LoadThemeResources()
        {
            Themes.RemoveAllThemeInfos();
            Themes.AddThemeInfo("Light", new List <Uri>()
            {
            });
            Themes.AddThemeInfo("Dark", new List <Uri>()
            {
            });

            AppearanceManager.AddThemeResources("Light", new List <Uri>
            {
                //   new Uri("/Xceed.Wpf.AvalonDock.Themes.VS2013;component/Themes/generic.xaml", UriKind.RelativeOrAbsolute)
                //new Uri("/Xceed.Wpf.AvalonDock.Themes.VS2013;component/LightBrushs.xaml", UriKind.RelativeOrAbsolute)
                new Uri("/AvalonDock.Themes.VS2013;component/LightBrushs.xaml", UriKind.RelativeOrAbsolute)

                //,new Uri("/MLib;component/Themes/LightTheme.xaml", UriKind.RelativeOrAbsolute)

                , new Uri("/DaxStudio.UI;component/Theme/AvalonDock_Dark_LightBrushs.xaml", UriKind.RelativeOrAbsolute)
                , new Uri("/DaxStudio.UI;component/Theme/Light.DaxStudio.xaml", UriKind.RelativeOrAbsolute)
            }, Themes);


            AppearanceManager.AddThemeResources("Dark", new List <Uri>
            {
                //   new Uri("/Xceed.Wpf.AvalonDock.Themes.VS2013;component/Themes/generic.xaml", UriKind.RelativeOrAbsolute)
                //new Uri("/Xceed.Wpf.AvalonDock.Themes.VS2013;component/DarkBrushs.xaml", UriKind.RelativeOrAbsolute)
                new Uri("/AvalonDock.Themes.VS2013;component/DarkBrushs.xaml", UriKind.RelativeOrAbsolute)

                //,new Uri("/MLib;component/Themes/DarkTheme.xaml", UriKind.RelativeOrAbsolute)

                , new Uri("/DaxStudio.UI;component/Theme/AvalonDock_Dark_LightBrushs.xaml", UriKind.RelativeOrAbsolute)

                , new Uri("/DaxStudio.UI;component/Theme/Dark.DaxStudio.xaml", UriKind.RelativeOrAbsolute)
                , new Uri("/DaxStudio.UI;component/Theme/Monotone.Colors.xaml", UriKind.RelativeOrAbsolute)
                , new Uri("/DaxStudio.UI;component/Theme/Monotone.Brushes.xaml", UriKind.RelativeOrAbsolute)
                , new Uri("/DaxStudio.UI;component/Theme/Monotone.xaml", UriKind.RelativeOrAbsolute)
                , new Uri("/DaxStudio.UI;component/Theme/Monotone.DaxEditor.xaml", UriKind.RelativeOrAbsolute)
            }, Themes);
        }