This project is read-only.

How to respond to the Automatic choice in ColorGallery?

Dec 16, 2010 at 3:55 PM

I have my ColorGallery working perfectly with one exception. How do I respond to the Automatic setting in the ColorGallery?

In my code I change the background color of my Tabs based on the selected color in the Gallery like this:

       private void themeColorGallery_SelectedColorChanged(object sender, RoutedEventArgs e)
             if (themeColorGallery.SelectedColor != null)
                  Properties.Settings.Default.backgroundColor = Convert.ToString(themeColorGallery.SelectedColor.Value);
             if(tbContacts != null)

This works perfectly except that Automatic does absolutely nothing at all. I would like to have it work similar to other applications like  Office or even be able to set it to a value like white.

But, how do I?

Dec 17, 2010 at 6:08 AM


if (themeColorGallery.SelectedColor == null) Properties.Settings.Default.backgroundColor = "White"; ?
Dec 17, 2010 at 6:20 PM

Oh! OK. I guess the automatic color is always white. :) LOL sorry then for such a stupid question.