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

Symbol OnMove()

Thread ID:

Created:

Updated:

Platform:

Replies:

68126 Sep 10,2007 08:16 AM UTC Sep 11,2007 02:57 AM UTC Windows Forms 1
loading
Tags: Diagram
Mohamed
Asked On September 10, 2007 08:16 AM UTC

I've been running into problems while migrating to the new 5.1.0.51 diagram, I was using the Symbol class which used to inherit from Node, now it's obsolete so I changed my symbol base to inherit from Node. I used to override the OnMove method to insert custom code and checking while symbols are moving, now node have the Move method which is not virtual, I also used to rely on MoveEventArgs.Nodes to pass the currently moving nodes. Any ideas how to provide the same services using the new library.

Jeba S [Syncfusion]
Replied On September 11, 2007 02:57 AM UTC

Hi Shinnawy,

Thank you for posting query to us.

OnMove() is no longer valid in v.5. You can use EventSink.NodeCollectionChanged() and EventSink.SizeChanged instead.
Please refer to the following code snippets:

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 refer the forum thread for more details:
http://www.syncfusion.com/support/forums/message.aspx?MessageID=59050

Regarding migration from v4.4 to V5.1 of Essential Diagram has been fully refactored to make the product more stable and maintainable. Hence it is completely a new version. I have attached the migration document that helps you to migrate your code from v4.4 to v5.1. You can get the document from the following link :
http://www.syncfusion.com/Support/user/uploads/Migration_680cbfe3.zip

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,
Jeba.

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

;