Proposal: ColorPicker horizontal mode
See original GitHub issueAPI spec proposal: https://github.com/microsoft/microsoft-ui-xaml-specs/pull/53
Proposal: ColorPicker horizontal mode
Summary
The current layout of the ColorPicker is mainly designed to grow in height. However in some cases, it may be better to have the ColorPicker to be wide, not high.
Rationale
- In cases were height is limited, the ColorPicker is problematic to use
- Retemplating the whole control would not be that simple, since we need to completely reorganize the layout
- A horizontal ColorPicker may be easier to integrate due to the fact, that most content and screens are wide
Scope
Capability | Priority |
---|---|
Developers have the possibilities to use ColorPickers where height is very limited, but width is not | Must |
The ColorPicker has a display mode, similiar to NavigationView where the developer can specify wether it should layout vertically or horizontally | Should |
Important Notes
Open Questions
Examples
A standard ColorPicker using Orientation “Vertical”
<muxc:ColorPicker IsAlphaEnabled="True" Orientation="Vertical"/>
Standard ColorPicker using Orientation “Horizontal”
<muxc:ColorPicker IsAlphaEnabled="True" Orientation="Horizontal"/>
Remarks
API Notes
Orientation: The orientation determining wether to display horizontally or vertically.
API Details
[webhosthidden]
unsealed runtimeclass ColorPicker
{
/// Gets or sets the DisplayMode of the ColorPicker
Windows.UI.Xaml.Controls.Orientation Orientation = Windows.UI.Xaml.Controls.Orientation.Vertical;
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:41 (35 by maintainers)
Top Results From Across the Web
How do I move the color picker in a straight line?
Click the S or B options to the right and then adjust the vertical slider. This will retain the hue but allow you...
Read more >ColorPicker Class (Windows.UI.Xaml.Controls)
Represents a control that lets a user pick a color using a color spectrum, sliders, and text input. Equivalent WinUI 2 API for...
Read more >Color Picker - FlutterFlow Docs
Using this action, you can allow users to pick their favorite color from the palette or by entering a HEX/RGB color value. You...
Read more >Digital Color Meter User Guide for Mac
When the aperture is locked both horizontally and vertically, it doesn't move as you move the pointer. Copy the color value: To copy...
Read more >Color picker overview
Learn how to choose colors and create swatches using the color picker.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey folks,
As you may have seen with the opening of this spec we have re-invested into this feature to add an additional Orientation property to ColorPicker to support a horizontal layout. We are aiming to include this in WinUI 2.7. Thank you to @chingucoding for hopping in to help spec and develop this feature! 🎉
Good memory recall @robloo
If the Suffix/Prefix feature for the TextBox is accepted #784 They could be used to further minify the ColorPicker