alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class DiagramCollectionChangedEventArgs

    Provides data for CollectionChanged: a Node or Connector was just added to, or removed from, the diagram — one unified event for both Nodes and Connectors, regardless of what caused the change.

    Inheritance
    System.Object
    DiagramCollectionChangedEventArgs
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public sealed class DiagramCollectionChangedEventArgs : EventArgs
    Remarks

    "Regardless of what caused the change" is the reason this exists as its own event rather than asking application code to subscribe to Nodes/Connectors's own System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged separately (which would still work, but only covers additions/removals application code itself made): this also fires for a node dragged in from a sibling SymbolPalette, an interactively-drawn connector, a delete/cut in the WebView, or an undo/redo of any of those — every one of which ends up going through the same Nodes/Connectors collections either way (see Syncfusion.Maui.Diagram.DiagramManager's remarks on the JavaScript-to-native structural sync), so a single subscription here sees all of it.

    Properties

    Action

    Gets whether this is an addition or a removal. System.Collections.Specialized.NotifyCollectionChangedAction.Reset means Nodes or Connectors was cleared in bulk (e.g. Nodes.Clear()) — Node/Connector are both null in that one case, since nothing reports which items a bulk clear removed. Every other value refers to exactly one Node or Connector via the properties below.

    Declaration
    public NotifyCollectionChangedAction Action { get; }
    Property Value
    Type
    System.Collections.Specialized.NotifyCollectionChangedAction

    Connector

    Gets the connector that was added or removed, or null if this change was about a node (or a bulk clear).

    Declaration
    public Connector Connector { get; }
    Property Value
    Type
    Connector

    Node

    Gets the node that was added or removed, or null if this change was about a connector (or a bulk clear).

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