alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class NodeBase

    Abstract base class for the two first-class diagram elements: Node and Connector. Holds the properties that both share — Id, Style, AddInfo, and Syncfusion.Maui.Diagram.NodeBase.IsSelected — so that application code and DiagramManager internals can refer to either kind of element through a single typed reference where the concrete subtype does not matter.

    Inheritance
    System.Object
    DiagramElement
    NodeBase
    Connector
    Node
    Inherited Members
    DiagramElement.OnPropertyChanged(String)
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public abstract class NodeBase : DiagramElement

    Constructors

    NodeBase()

    Initializes a new instance of the NodeBase class. Sets Style to a default ShapeStyle instance and subscribes to its Syncfusion.Maui.Diagram.DiagramElement.Changed event so nested style changes bubble up.

    Declaration
    protected NodeBase()

    Fields

    AddInfoProperty

    Identifies the AddInfo bindable property.

    Declaration
    public static readonly BindableProperty AddInfoProperty
    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

    StyleProperty

    Identifies the Style bindable property.

    Declaration
    public static readonly BindableProperty StyleProperty
    Field Value
    Type
    Microsoft.Maui.Controls.BindableProperty

    Properties

    AddInfo

    Gets or sets arbitrary application data associated with this element (for example, a view-model instance). Not sent to the JavaScript side.

    Declaration
    public object AddInfo { get; set; }
    Property Value
    Type
    System.Object

    Id

    Gets or sets the element's identifier. Assigned automatically when left null. Used by SourceID/TargetID to attach a connector to a node.

    Declaration
    public string Id { get; set; }
    Property Value
    Type
    System.String

    Style

    Gets or sets the element's fill and stroke appearance.

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