Class ColorPaletteModel

    Show / Hide Table of Contents

    Class ColorPaletteModel

    Represents the model class to configure ColorPalette.

    Inheritance
    System.Object
    NotificationObject
    ColorPaletteModel
    StandardPaletteModel
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    NotificationObject.RaisePropertyChanged(String)
    NotificationObject.RaisePropertyChanged(String[])
    NotificationObject.PropertyChanged
    Namespace: Syncfusion.UI.Xaml.Editors
    Assembly: Syncfusion.Editors.WinUI.dll
    Syntax
    public class ColorPaletteModel : NotificationObject, INotifyPropertyChanged

    Constructors

    ColorPaletteModel()

    Initializes a new instance of the ColorPaletteModel class.

    Declaration
    public ColorPaletteModel()

    Properties

    Colors

    Gets or sets the list of base colors.

    Declaration
    public ColorCollection Colors { get; set; }
    Property Value
    Type Description
    ColorCollection

    ColorShadesSpacing

    Gets or sets the spacing between the base color and its variant color shades.

    Declaration
    public double ColorShadesSpacing { get; set; }
    Property Value
    Type Description
    System.Double

    Header

    Gets or sets the header of the color model.

    Declaration
    public object Header { get; set; }
    Property Value
    Type Description
    System.Object
    Remarks

    UI of header can be customized using HeaderTemplate.

    HeaderTemplate

    Gets or sets the data template of the color model header.

    Declaration
    public DataTemplate HeaderTemplate { get; set; }
    Property Value
    Type Description
    Microsoft.UI.Xaml.DataTemplate
    Remarks

    Header is the data context for this template.

    ShowColors

    Gets or sets a value indicating whether to show base colors or not.

    Declaration
    public bool ShowColors { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowColorShades

    Gets or sets a value indicating whether to show color shades or not.

    Declaration
    public bool ShowColorShades { get; set; }
    Property Value
    Type Description
    System.Boolean

    ShowHeader

    Gets or sets a value indicating whether to show header or not.

    Declaration
    public bool ShowHeader { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Use Header and HeaderTemplateto define the header and its appearance.

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved