Class ColorSelector

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll

    The ColorSelector is a widget to set a series of colors. It also allows to load/save colors from/to the configuration with a unique identifier.

    [Obsolete("This has been deprecated in API12")]
    public class ColorSelector : Layout, IAccessibleObject
    Inheritance
    object
    EvasObject
    AccessibleObject
    Widget
    Container
    Layout
    ColorSelector
    Implements
    IAccessibleObject
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    Constructors

    View Source

    ColorSelector(EvasObject)

    Creates and initializes a new instance of the ColorSelector class.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public ColorSelector(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    Properties

    View Source

    Mode

    Gets or sets the Colorselector's mode.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public ColorSelectorMode Mode { get; set; }
    Property Value
    Type Description
    ColorSelectorMode
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    View Source

    Opacity

    Gets the Alpha of a default Color class (value is -1).

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public override int Opacity { get; set; }
    Property Value
    Type Description
    int
    Overrides
    Widget.Opacity
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    View Source

    PaletteName

    Gets or sets the current palette's name.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public string PaletteName { get; set; }
    Property Value
    Type Description
    string
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    View Source

    SelectedColor

    Gets or sets the color of colorselector.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public Color SelectedColor { get; set; }
    Property Value
    Type Description
    Color
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    Methods

    View Source

    AddPaletteColor(Color)

    Adds a new color item to the palette.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public ColorSelectorItem AddPaletteColor(Color color)
    Parameters
    Type Name Description
    Color color

    The color item to add.

    Returns
    Type Description
    ColorSelectorItem

    A new color palette Item.

    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    View Source

    ClearPalette()

    Clears the palette items.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public void ClearPalette()
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    View Source

    CreateHandle(EvasObject)

    Creates a widget handle.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    protected override IntPtr CreateHandle(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    Parent EvasObject.

    Returns
    Type Description
    System.IntPtr

    Handle IntPtr.

    Overrides
    Layout.CreateHandle(EvasObject)
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    Events

    View Source

    ColorChanged

    ColorChanged will be triggered when the SelectedColor is changed.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public event EventHandler<ColorChangedEventArgs> ColorChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><ColorChangedEventArgs>
    Remarks

    By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.

    Implements

    IAccessibleObject

    Extension Methods

    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Deactivate(EvasObject)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX