alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class DiagramConnectorConnectionChangedEventArgs

    Provides data for ConnectionChanged: a Connector's source or target endpoint just finished attaching to, detaching from, or being re-routed between nodes/ports in the WebView (EJ2's connectionChange event, "Changed" state).

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

    "old" properties are captured from Connector's own state on the managed side immediately before the new values are applied — EJ2's connectionChange callback reports the connector itself in args.oldValue/args.newValue (references to EJ2's live objects, not snapshots), so by the time the C# side sees them they already reflect the new state. The bridge therefore reads the managed Connector directly. See Managers.DiagramManager.OnBridgeConnectorConnectionChanged for the apply order that makes the old/new pairs meaningful.

    Properties

    Cause

    Gets EJ2's cause string for this connection change (typical values include "Connect", "Disconnect", "Reconnect", "CzReroute"; exact set depends on which internal call site of the underlying EJ2 tool raised the event). null when the host page didn't forward a cause (for example, a payload from an older session that predates this field, or a programmatic apply with no gesture).

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

    Connector

    Gets the connector whose connection changed. Its endpoints already equal NewSourceID/NewTargetID.

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

    NewSourceID

    Gets the connector's SourceID after this change (null if it is now a floating point).

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

    NewSourcePoint

    Gets the connector's SourcePoint after this change.

    Declaration
    public Nullable<Point> NewSourcePoint { get; }
    Property Value
    Type
    System.Nullable<Microsoft.Maui.Graphics.Point>

    NewSourcePortID

    Gets the connector's SourcePortID after this change.

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

    NewTargetID

    Gets the connector's TargetID after this change (null if it is now a floating point).

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

    NewTargetPoint

    Gets the connector's TargetPoint after this change.

    Declaration
    public Nullable<Point> NewTargetPoint { get; }
    Property Value
    Type
    System.Nullable<Microsoft.Maui.Graphics.Point>

    NewTargetPortID

    Gets the connector's TargetPortID after this change.

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

    OldSourceID

    Gets the connector's SourceID before this change (or null if it was a floating point).

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

    OldSourcePoint

    Gets the connector's SourcePoint before this change (set when OldSourceID was null).

    Declaration
    public Nullable<Point> OldSourcePoint { get; }
    Property Value
    Type
    System.Nullable<Microsoft.Maui.Graphics.Point>

    OldSourcePortID

    Gets the connector's SourcePortID before this change.

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

    OldTargetID

    Gets the connector's TargetID before this change (or null if it was a floating point).

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

    OldTargetPoint

    Gets the connector's TargetPoint before this change (set when OldTargetID was null).

    Declaration
    public Nullable<Point> OldTargetPoint { get; }
    Property Value
    Type
    System.Nullable<Microsoft.Maui.Graphics.Point>

    OldTargetPortID

    Gets the connector's TargetPortID before this change.

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