I have an ObservableCollection<Color>
dependency property in my CustomControl, which I want to parametrize on each instantiation, preferably in XAML:
<clb:ColorListBox.StandardColors>
<local:ObservableColorCollection>
<Color R=255 G=0 B=0 />
<Color ... /
</local:ObservableColorCollection>
</clb:ColorListBox.StandardColors>
How can I declare the colors by name?
(Btw: the ObservableColorCollection is defined this way in the codebehind)