Custom Color Palette in Visual Studio Color Property Editor

Viewed 13286

Within the Visual Studio Designer, under the properties window you are able to select the ForeColor, BackColor etc using color picker. When you want to pick a color, a color picker comes up with the tabs 'Custom, Web, System'. If you select custom, then you are able to add a new color to the picker, but only the bottom 2 rows are changeable, and the changes don't persist across controls. So if you add a color to the palette, when you select another control and want to change for example BackColor your previous added color is not there.

Is there a way to create and import a custom set of colors into the designer's color-picker control?

Note: This question isn't asking about VS themes, or if colors can be implemented as a class in the code-behind. I'm after a way to tailor the designer.

3 Answers

I know it's been quite some time...

You can use MergedDictionaries and reference a Resource Dictionary in your App.xml file.

That will put the colors you define in the palette but you would have to include the same Resource Dictionary and reference it in every App.xaml for every application you use, which, in my opinion, is good because sometimes you have to use custom colors for different applications.Custom Color Palette

Something like that

Write a code that display color attributes in the color dialog box

Related