-
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
Color Picker custom style not load on selected pane #4121
Comments
Hello JanRajnoha, 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 🙌 |
FYI @robloo |
This might also be related to the SwitchPresenter as well. Regardless, it should be an easy fix with some update code added to the Loaded event. I'll take a look soon and see where the problem might be occurring though. |
Thanks @robloo for taking a look! The WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI.Controls.Input/ColorPicker/ColorPicker.xaml Lines 95 to 98 in d863f11
So not sure if it's an issue with the SelectedItem being null at first maybe or something else. The WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI.Controls.Input/ColorPicker/ColorPicker.xaml Lines 80 to 85 in d863f11
Looks like the Visual State toggles the WindowsCommunityToolkit/Microsoft.Toolkit.Uwp.UI.Controls.Input/ColorPicker/ColorPicker.xaml Lines 510 to 514 in d863f11
Therefore, it's invisible, but still selected maybe? As we wouldn't have updated the default selected item to whatever's left... 🤔 If there is an issue with the |
Yes, I was thinking the same. Will take a look this weekend. |
@michael-hawker This issue is partially related to the That said, this code never worked correctly due to microsoft/microsoft-ui-xaml#2952. As Pivot clearly has a bad design in this area, and we were changing to There are two possible solutions for this:
In the interest of time, I'm going to proceed with option 2. However, if the architecture allows it, I highly recommend updating |
Describe the bug
I want to set color picker style like this to have only predefined pallet with colors
Problem is color picker load with spectrum selector, which is wrong. This selector is not even in top menu to select.
So when I switch to pallet, color picker will load only on pallet, but it should load like this on first open.
Steps to Reproduce
XAML code provided in steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Should open directly on color pallet
Screenshots
In description
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: