-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Custom mode to ColorZone #1611
Add Custom mode to ColorZone #1611
Conversation
Though this works I suspect there is a slightly simpler solution. This would also line up with the normal enum recommendation of having a None zero member. This then lets you use the Foreground and Background properties. Thoughts? |
None for the Mode may give the wrong idea i think we shuld keep Custom but removing CustomBackground and CustomForeground and using the already existing Background and Foreground is a good idea |
Thinking about this after looking into it a bit more. Wouldn't setting it to Standard (the first enum member) and setting Foreground and Background give the same result? |
yes. i just checked my bad |
Upon further consideration I think we should actually keep this implementation. The linked issued #1391, it about wanting some mechanism of control for setting the colors of the GroupBox header. It is true you can hack around it by declaring alternate theme resources but this also would affect the content inside of the group box which is problematic. I would like to see this PR move a little further forward in implementing that link (likely through attached properties) with a sample in the demo app of changing the group box header color. But other than that I think this is fine. |
…olorZone assist class and remvoe Custom from their names Add Custom GroupBox to the demo app and edit the Custom ColorZone Demo to reflect the new changes
…olorZone assist class
There are 1 custom ColorZone and 1 custom GroupBox in the demo now You can set the custom colors from you can't run the demo and see the changes for now because of a runtime error
|
Great work. Thanks for the contribution! |
Now you can use
CustomBackground
andCustomForeground
for the ColorZone if you chooseCustom
as its mode because sometimes you need your own colors like for a GroupBox or somethingfixes #1391