alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    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
    object
    EventArgs
    DiagramConnectorConnectionChangedEventArgs
    Inherited Members
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    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
    string

    NewSourcePoint

    Gets the connector's SourcePoint after this change.

    Declaration
    public Point?? NewSourcePoint { get; }
    Property Value
    Type
    Point?

    NewSourcePortID

    Gets the connector's SourcePortID after this change.

    Declaration
    public string? NewSourcePortID { get; }
    Property Value
    Type
    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
    string

    NewTargetPoint

    Gets the connector's TargetPoint after this change.

    Declaration
    public Point?? NewTargetPoint { get; }
    Property Value
    Type
    Point?

    NewTargetPortID

    Gets the connector's TargetPortID after this change.

    Declaration
    public string? NewTargetPortID { get; }
    Property Value
    Type
    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
    string

    OldSourcePoint

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

    Declaration
    public Point?? OldSourcePoint { get; }
    Property Value
    Type
    Point?

    OldSourcePortID

    Gets the connector's SourcePortID before this change.

    Declaration
    public string? OldSourcePortID { get; }
    Property Value
    Type
    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
    string

    OldTargetPoint

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

    Declaration
    public Point?? OldTargetPoint { get; }
    Property Value
    Type
    Point?

    OldTargetPortID

    Gets the connector's TargetPortID before this change.

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