Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainForm" /> class.
        /// </summary>
        public MainForm()
        {
            InitializeComponent();

            //Office2010BlackTheme officeTheme = new Office2010BlackTheme();
            //officeTheme.Load();
            //ThemeResolutionService.ApplicationThemeName = officeTheme.ThemeName;

            DesertTheme desertTheme = new DesertTheme();
            desertTheme.Load();
            ThemeResolutionService.ApplicationThemeName = desertTheme.ThemeName;

            ThemeResolutionService.ApplyThemeToControlTree(this, ThemeResolutionService.ApplicationThemeName);
        }
Beispiel #2
0
        public ThemeManager()
        {
            aquaTheme                  = new AquaTheme();
            breezeTheme                = new BreezeTheme();
            desertTheme                = new DesertTheme();
            highContrastBlackTheme     = new HighContrastBlackTheme();
            office2007BlackTheme       = new Office2007BlackTheme();
            office2007SilverTheme      = new Office2007SilverTheme();
            office2010BlackTheme       = new Office2010BlackTheme();
            office2010BlueTheme        = new Office2010BlueTheme();
            office2010SilverTheme      = new Office2010SilverTheme();
            office2013DarkTheme        = new Office2013DarkTheme();
            office2013LightTheme       = new Office2013LightTheme();
            telerikMetroBlueTheme      = new TelerikMetroBlueTheme();
            telerikMetroTheme          = new TelerikMetroTheme();
            telerikMetroTouchTheme     = new TelerikMetroTouchTheme();
            visualStudio2012DarkTheme  = new VisualStudio2012DarkTheme();
            visualStudio2012LightTheme = new VisualStudio2012LightTheme();
            windows7Theme              = new Windows7Theme();
            windows8Theme              = new Windows8Theme();

            ThemeResolutionService.AllowAnimations = true;
        }