Using OxyPlot, I want to provide the user of my WPF Application with a combobox containing all available OxyColors to select one color.
From the sourcecode, one can see that the OxyColors are public static readonly
properties of the static OxyColors
class.
The Question is, if there is a way to bind all colors as itemsource of a combobox.
The only thing I can think of so far is to create a List<OxyColor>
and manually add all of the colors to it, but maybe there is a more elegant way to tackle this problem.
Edit: Found this answer to a similar problem. However, again it is manually creating a List of all colors.