Skip to content

Conversation

AndrewKeepCoding
Copy link
Contributor

Work around AoT issue by setting ColorPicker value in code instead of using XAML binding.

Fixes

Fixes #509.

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

The ColorPicker control throws an exception.

What is the new behavior?

The ColorPicker works as expected without throwing exceptions.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • New component
    • Documentation has been added
    • Sample in sample app has been added
    • Analyzers are passing for documentation and samples
    • Icon has been created (if new sample) following the Thumbnail Style Guide and templates
  • Tests for the changes have been added (if applicable)
  • Header has been added to all new source files
  • Contains NO breaking changes

Other information

@Arlodotexe Arlodotexe self-requested a review October 9, 2025 21:23
@Arlodotexe Arlodotexe moved this to 🆕 New in Toolkit 8.x Oct 9, 2025
Copy link
Member

@Arlodotexe Arlodotexe left a comment

Choose a reason for hiding this comment

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

Ran into this while testing the new ColorAnalyzer component in WCT Labs. Tested and pulled locally, it fixes the issue we have on the main branch!

@Arlodotexe Arlodotexe moved this from 🆕 New to 👀 In review in Toolkit 8.x Oct 9, 2025
@Arlodotexe Arlodotexe merged commit fae8940 into CommunityToolkit:main Oct 9, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Toolkit 8.x Oct 9, 2025
@AndrewKeepCoding AndrewKeepCoding deleted the fix-colorpicker-crash branch October 10, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ColorPicker sample in gallery crashing under Windows App SDK

2 participants