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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to notify the state of operation performed on node of WPF Diagram (SfDiagram)?

Platform: WPF |
Control: SfDiagram |
Published Date: January 22, 2016 |
Last Revised Date: July 16, 2021

WPF Diagram (SfDiagram) provides some interactions (Resize, Rotate and Drag) support on Node. The NodeChangedEvent is to notify operation performing on Node with InteractionState as arguments. InteractionState argument is to notify the State of operation (Dragging, Rotating, Resizing, Dragged, Rotated, and Resized) performed on Node using NodeChangedEvent. Please refer to the below code example to achieve this.


//Event to notify the state of operation performed on Node. (diagram.Info as IGraphInfo).NodeChangedEvent += diagram_NodeChangedEvent;
void diagram_NodeChangedEvent(object sender, ChangeEventArgs<object, NodeChangedEventArgs> args)
{  //argument to notify the state of operation performed on Node in NodeChangedEvent.  var InteractionState = args.NewValue.InteractionState;  if (InteractionState == NodeChangedInteractionState.Dragging)  {    //Dragging in Progress   }  if(InteractionState == NodeChangedInteractionState.Dragged)  {    //Dragging Completed   }       }


2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile