We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

V5: Node Event API changes

Thread ID:

Created:

Updated:

Platform:

Replies:

59050 Apr 4,2007 06:11 AM UTC Apr 9,2007 09:57 AM UTC Windows Forms 1
loading
Tags: Diagram
Apolon Ivankovic
Asked On April 4, 2007 06:11 AM UTC

In my existing V4 based application the following methods are overridden so that specialized node types can perform application specific actions when nodes are moved/resized etc:
protected override void OnBoundsChanged( BoundsEventArgs e )
protected override void OnMove( MoveEventArgs e )
protected override void OnScale( ScaleEventArgs e )

These methods and the associated event arg classes no longer exist to my knowledge. How should I implement similar such functionality using the V5 diagramming API?

J.Nagarajan [Syncfusion]
Replied On April 9, 2007 09:57 AM UTC

Hi Apolon,

Sorry for the delay in getting back to you .

The OnBoundsChanged(), OnMove() and OnScale() methods are no longer valid in v.5. You can use EventSink.NodeCollectionChanged() and EventSink.SizeChanged instead. Please refer to the following code

this.diagram.Controller.Model.EventSink.Start();
this.diagram.Controller.Model.EventSink.PinPointChanged += new PinPointChangedEventHandler(EventSink_PinPointChanged);
this.diagram.Controller.Model.EventSink.SizeChanged += new SizeChangedEventHandler(EventSink_SizeChanged);

void EventSink_PinPointChanged(PinPointChangedEventArgs evtArgs)
{
Console.WriteLine(evtArgs.NodeAffected.Name);
}

void EventSink_PinPointChanged(PinPointChangedEventArgs evtArgs)
{
Console.WriteLine(evtArgs.NodeAffected.Name);
}

Please let me know if you have any questions

Regards,
Nagaraj

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;