This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Is there events which raise at relocation or resizing of a nodes? |
|
|
Hello The MoveThumb.MovedEvent and SizeThumb.SizedEvent are the routed events that you are looking for. You can use the following code in your application to attach event handlers to these events. Paste this code into the constructor of the application window, or attach them to anything that is hosting the DiagramSurface.
AddHandler(MoveThumb.MovedEvent, new EventHandler<MovedEventArgs>(OnElementMoved)); Then you can use the following 2 methods to handle the events.
private void OnElementMoved(object sender, MovedEventArgs args) Also, make sure to download the nightly build from tomorrow the 14th of September for the moved event to work properly. Regards |
|
|
Thank you. It's work. |
|