Extended Library for UWP | ComponentOne
Extended Library Overview / ColorPicker for UWP / Visual Elements
In This Topic
    Visual Elements
    In This Topic

    ColorPicker for UWP allows users to create customized, visually-advanced applications enriched with multi-color palettes. The following illustrations show various elements of a C1ColorPicker.

    Basic Mode

    The Mode property of C1ColorPicker allows users to either choose colors from a preselected color palette or customize their own palette as per their choice. C1ColorPicker supports three modes provided by C1ColorPickerMode, namely Basic, Advanced and Both. By default, the Mode property is set to Both with Basic as well as Advanced color palettes visible to users.

    Basic Mode: By default, C1ColorPicker opens with Basic tab open when the control's drop-down arrow is clicked. The Basic Tab appears similar to the following image.

    The Basic tab includes:

    Advanced Mode

    The Advanced mode appears in the Advanced tab, which is placed on the right side of the Basic tab. This mode enables users to customize the color palette by selecting various color tones available with every single color. This mode also supports RGB Colors, which can be viewed in C1ColorPicker's Properties window in Design view. The Advanced tab appears similar to the following image.

     

     The Advanced tab mainly includes:

    Additional Controls

    C1SpectrumColorPicker: Colorpicker for UWP includes C1SpectrumColorPicker control that allows you to access the advanced color picking functionality. The C1SpectrumColorPicker appears similar to the following image.

    The C1SpectrumColorPicker control includes:

    • Color Field: The Color Field enables you to select a color tone.
    • Color Slider: Color slider lets you select color from the color spectrum. Move the Color Slider to pick a general color and then fine tune your selection in the Color Field.
    • Transparency Slider: This slider allows you to set the color's transparency, which can be set to opaque or partially/completely transparent. This slider is visible only when the ShowAlphaChannel property is set to True (default).

    C1HexColorBox:  Colorpicker for UWP includes C1HexColorBox control for data validation of hexadecimal code entries. Similar to a regular textbox in appearance, C1HexColorBox control displays an 8-character code, wherein the first two characters represents the color's transparency level. For instance, FF represents opaque and 00 represents transparent. The remaining 6-characters represent standard hexadecimal color selection. C1HexColorBox appears similar to the following image.