question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: ColorPicker horizontal mode

See original GitHub issue

API 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"/>

ColorPicker_VerticalMode

Standard ColorPicker using Orientation “Horizontal”

<muxc:ColorPicker IsAlphaEnabled="True" Orientation="Horizontal"/>

ColorPicker_HorizontalMode

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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:41 (35 by maintainers)

github_iconTop GitHub Comments

4reactions
gabbybilkacommented, Jul 28, 2021

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! 🎉

3reactions
mdtaukcommented, Nov 26, 2019

Good memory recall @robloo

If the Suffix/Prefix feature for the TextBox is accepted #784 They could be used to further minify the ColorPicker

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found