Class ColorPaletteModel
Represents the model class to configure ColorPalette.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
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 |
---|
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 |
---|
System.Double |
Header
Gets or sets the header of the color model.
Declaration
public object Header { get; set; }
Property Value
Type |
---|
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 |
---|
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 |
---|
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 |
---|
System.Boolean |
ShowHeader
Gets or sets a value indicating whether to show header or not.
Declaration
public bool ShowHeader { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
Use Header and HeaderTemplateto define the header and its appearance.
Implements
System.ComponentModel.INotifyPropertyChanged