Skip to content
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 option to close ColorPicker on selected color changed #4129

Merged
merged 1 commit into from Jun 18, 2021
Merged

Add option to close ColorPicker on selected color changed #4129

merged 1 commit into from Jun 18, 2021

Conversation

FroggieFrog
Copy link
Contributor

Describe the changes you have made to improve this project

This PR adds a property CloseOnSelectedColorChanged to the ColorPicker control which allows the user to specify if the DropDown should be closed after a color is selected from a palette.
Further info can be found in #4128.

Unit test

None, because I don't know how to to that for this control.

Additional context

The default value is false to not break existing behavior.

colorpicker_autoclose

Closed Issues

Closes #4128

@punker76 punker76 added this to the 3.0.0 milestone Jun 18, 2021
@punker76 punker76 removed this from the 3.0.0 milestone Jun 18, 2021
@punker76 punker76 merged commit 33a0132 into MahApps:develop Jun 18, 2021
@punker76
Copy link
Member

@FroggieFrog your changes have been merged, thanks for your contribution 👍

@timunie
Copy link
Collaborator

timunie commented Jun 18, 2021

Hi @FroggieFrog

I really like your idea of having the autoclose option. It didn't came into my mind when I wrote this control because I needed it to stay open as the update would take a few seconds. 👍🏻

I would like to ask if you can extend the new DP also in the docs? I want the docs to be up to date 😉

May thanks, happy coding and a great weekend
Tim

@FroggieFrog FroggieFrog deleted the colorpicker-autoclose branch June 18, 2021 18:41
@FroggieFrog
Copy link
Contributor Author

The PR for the doc is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Close ColorPicker on selected color changed
3 participants