Skip to content

Switch ColorPicker to Derive from WinUI Controls #4010

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

Merged
5 commits merged into from
Jun 29, 2021
Merged

Switch ColorPicker to Derive from WinUI Controls #4010

5 commits merged into from
Jun 29, 2021

Conversation

robloo
Copy link
Contributor

@robloo robloo commented Apr 29, 2021

Fixes

Fixes some potential crashes with the built-in Windows 10 ColorSpectrum by switching to the WinUI version instead with the latest bug fixes.

  • ColorPicker and ColorSpectrum now derive from the WinUI equivalent controls

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Refactoring (no functional changes, no api changes)

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Pull Request has been submitted to the documentation repository instructions. Link:
  • Sample in sample app has been added / updated (for bug fixes / features)
  • New major technical changes in the toolkit have or will be added to the Wiki e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes
    Anyone customizing the Spectrum shape or components directly in C# will need to switch to Microsoft.UI.Xaml namespace

Other information

See discussion in #3943 #3943 (comment)

@ghost
Copy link

ghost commented Apr 29, 2021

Thanks robloo for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

Copy link
Contributor

@Rosuavio Rosuavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything seems to be working well. Looks good!

@michael-hawker
Copy link
Member

Thanks @RosarioPulella!

@XAML-Knight want to give this one a quick poke too when you have a chance?

@ghost
Copy link

ghost commented Jun 28, 2021

Hello @michael-hawker!

Because this pull request has the auto merge :zap: label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 28444e9 into CommunityToolkit:main Jun 29, 2021
@robloo robloo deleted the color-picker-switch-to-winui branch June 29, 2021 19:40
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants