Skip to content

Proposal: ColorPicker horizontal mode #1637

@marcelwgn

Description

@marcelwgn

API spec proposal: microsoft/microsoft-ui-xaml-specs#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;
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions