-
Notifications
You must be signed in to change notification settings - Fork 1.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
ColorPickerButton SelectedColor binding not updating correctly #4367
Comments
Hello Marv51, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
Hi @Marv51 , yes, adding a DP callback method would be my first inclination - go ahead and file a PR for this. |
Update internal ColorPicker Color when ColorPickerButton SelectedColor changes
@XAML-Knight PR is ready. |
This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established. |
Update internal ColorPicker Color when ColorPickerButton SelectedColor changes
Describe the bug
ColorPickerButton's SelectedColor property, ignores changes to the source color completely. The color picker never reflects the updated color, even after it is closed and opened.
From looking at the source ColorPickerButton does not seem to forward changes of the "SelectedColor" to the internal ColorPicker. This is because the Color gets set once during OnApplyTemplate and not afterwards.
unclear, but clearly a bug
Steps to Reproduce
Sample App does not cover this use case.
Steps to reproduce the behavior:
Expected behavior
Screenshots
The source has a blue/cyan color, preview on ColorPickerButton was updated, but colorpicker shows previous value:
Environment
NuGet Package(s):
Package Version(s): 7.0.3
Windows 10 Build Number:
App min and target version:
Device form factor:
Visual Studio version:
Additional context
Using WinUI 3 Desktop version 0.8.5.
Would a PropertyChangedCallback on the SelectedColor dependency property be the preferred way to fix this? If so I could create a PR for this.
The text was updated successfully, but these errors were encountered: