alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class Palette

    One category (an expandable, titled group of symbols) in a SymbolPalette.

    Inheritance
    System.Object
    DiagramElement
    Palette
    Inherited Members
    DiagramElement.OnPropertyChanged(String)
    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 reuses the same Node model already used for Nodes: the bundle's own symbols array is a plain list of node definitions (shape/style/size, and so on), the same JSON shape either way. 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<Node> Symbols { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<Node>

    Title

    Gets or sets the category's header text.

    Declaration
    public string Title { get; set; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved