Class Palette
One category (an expandable, titled group of symbols) in a SymbolPalette.
Inherited Members
Namespace: Syncfusion.Maui.Diagram
Assembly: Syncfusion.Maui.Diagram.dll
Syntax
public class Palette : DiagramElement
Remarks
Mirrors the EJ2 Diagram PaletteModel JSON shape — { id, title, iconCss, expanded, symbols }
— verified directly against its property decorators in ej2.min.js. Symbols accepts
any NodeBase subtype: add Node instances for shape templates or
Connector instances for connector templates. Each is serialized to its respective EJ2
JSON shape (NodeModel or ConnectorModel) via its own registered converter.
Add instances to Palettes.
Constructors
Palette()
Initializes a new instance of the Palette class.
Declaration
public Palette()
Fields
IconCssProperty
Identifies the IconCss bindable property.
Declaration
public static readonly BindableProperty IconCssProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
IdProperty
Identifies the Id bindable property.
Declaration
public static readonly BindableProperty IdProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
IsExpandedProperty
Identifies the IsExpanded bindable property.
Declaration
public static readonly BindableProperty IsExpandedProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
SymbolsProperty
Identifies the Symbols bindable property.
Declaration
public static readonly BindableProperty SymbolsProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
TitleProperty
Identifies the Title bindable property.
Declaration
public static readonly BindableProperty TitleProperty
Field Value
| Type |
|---|
| Microsoft.Maui.Controls.BindableProperty |
Properties
IconCss
Gets or sets an optional CSS class rendered as an icon next to the category's header text.
Declaration
public string IconCss { get; set; }
Property Value
| Type |
|---|
| System.String |
Id
Gets or sets the category's identifier. Assigned automatically when left null.
Declaration
public string Id { get; set; }
Property Value
| Type |
|---|
| System.String |
IsExpanded
Gets or sets whether this category starts expanded. Defaults to true.
Declaration
public bool IsExpanded { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Symbols
Gets or sets the symbols (draggable node templates) shown under this category.
Declaration
public ObservableCollection<NodeBase> Symbols { get; set; }
Property Value
| Type |
|---|
| System.Collections.ObjectModel.ObservableCollection<NodeBase> |
Title
Gets or sets the category's header text.
Declaration
public string Title { get; set; }
Property Value
| Type |
|---|
| System.String |