-
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 Binding errors #4721
Comments
Hello HavenDV, 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 🙌 |
@HavenDV I think you're saying there may be an issue with the initialization/converter being used in the template of the control? Do you know if this is happening in UWP as well or just WinUI 3? It'd be great if we could define a test case in our unit tests which can replicate this issue and then find a solution. I'll assign to you to take a look at. If we can find a solution in the next week/week-and-a-half, we should be able to include in our upcoming hotfix release. (As for the PDB Debugging issue see dotnet/sdk#1458) |
Yes, the problem manifested itself in both WinUI and UWP. SampleApp also shows this issue: As I understand it, I can add validation directly to existing test: |
@HavenDV the For the sample app, that's just running the sample app locally with the existing sample (no changes) to exhibit the issue, eh? |
Yes, the problem is present in the sample application, you only need to have a debugger attached to see it. |
I confirmed this issue in the SampleApp. As stated, it is caused by the two-way binding of a nullable This isn't a critical issue but the binding failure shouldn't happen. |
Describe the bug
I am getting the following error messages:
However, everything seems to work.
These errors occur at the moment the button is clicked, at this moment the converter is not called.
This is preceded by a call to IValueConverter.Convert with a non-null value, as is the initial initialization.
I wasn't able to check the values via ColorToDisplayNameConverter because the symbols seem to be missing
While not likely related to this package, I can see pdb files inside. Most likely, I'm doing something wrong, because debugging only works for
<DebugType>embedded</DebugType>
libraries for me.Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
Without errors
Screenshots
2022-08-12_12-16-59.mp4
No response
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
17.3
Device form factor
No response
Nuget packages
7.1.2
Additional context
Related code:
https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/main/Microsoft.Toolkit.Uwp.UI.Controls.Input/ColorPicker/ColorPicker.xaml#L156-L181
https://github.com/CommunityToolkit/WindowsCommunityToolkit/blob/main/Microsoft.Toolkit.Uwp.UI/Converters/ColorToDisplayNameConverter.cs
Help us help you
Yes, I'd like to be assigned to work on this item.
The text was updated successfully, but these errors were encountered: