-
Couldn't load subscription status.
- Fork 1.4k
Closed
Labels
Completed 🔥bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorcontrols 🎛️
Milestone
Description
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:
- Copy code to app
<toolkitControls:ColorPickerButton Height="40" Margin="0 4 0 0" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" RelativePanel.AlignRightWithPanel="True" RelativePanel.AlignLeftWithPanel="True">
<toolkitControls:ColorPickerButton.ColorPickerStyle>
<Style TargetType="toolkitControls:ColorPicker">
<Setter Property="IsColorSpectrumVisible" Value="False"/>
<Setter Property="IsAlphaEnabled" Value="False"/>
<Setter Property="IsAlphaSliderVisible" Value="False"/>
<Setter Property="IsAlphaTextInputVisible" Value="False"/>
<Setter Property="IsColorChannelTextInputVisible" Value="False"/>
<Setter Property="IsColorPreviewVisible" Value="True"/>
<Setter Property="IsColorSliderVisible" Value="False"/>
<Setter Property="IsHexInputVisible" Value="False"/>
</Style>
</toolkitControls:ColorPickerButton.ColorPickerStyle>
</toolkitControls:ColorPickerButton>
- Click on color picker button in running app
Expected behavior
Should open directly on color pallet
Screenshots
In description
Environment
NuGet Package(s):
CommunityToolkit.WinUI.UI.Controls - 7.0.3
Package Version(s):
Windows 11 Build Number:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [ ] October 2018 Update (17763)
- [ ] May 2019 Update (18362)
- [ ] May 2020 Update (19041)
- [x] Insider Build (build number: 22000.71)
App min and target version:
- [ ] Fall Creators Update (16299)
- [ ] April 2018 Update (17134)
- [x] October 2018 Update (17763) - minimum
- [ ] May 2019 Update (18362)
- [x] May 2020 Update (19041) - target
- [ ] Insider Build (xxxxx)
Device form factor:
- [x] Desktop
- [ ] Xbox
- [ ] Surface Hub
- [ ] IoT
Visual Studio
- [ ] 2017 (version: )
- [x] 2019 (version: 10.3)
- [x] 2019 Preview (version: 11 preview 3)
Additional context
Add any other context about the problem here.
robloo
Metadata
Metadata
Assignees
Labels
Completed 🔥bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorcontrols 🎛️