Thanx, this really helped me :)
I used the first solution and did like this FrameworkPropertyMetadata(Color.FromARGB((byte)clrA,(byte)clrR,(byte)clrG,(byte)clrB)...);
clrA,clrR,clrG,clrB are integers and I use them to set the SelectedColor.
It is working as I wanted it but I think I can write it a little bit more efficient, but for the moment it is Ok :)
Thanx a lot
I used the first solution and did like this FrameworkPropertyMetadata(Color.FromARGB((byte)clrA,(byte)clrR,(byte)clrG,(byte)clrB)...);
clrA,clrR,clrG,clrB are integers and I use them to set the SelectedColor.
It is working as I wanted it but I think I can write it a little bit more efficient, but for the moment it is Ok :)
Thanx a lot