Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1925
xamDiagram Toolbox item drag on diagram
posted

I am trying to find out the events fired by xamDiagram when an item from toolbox is being dragged and moved around within diagram.

Take a look at this attached screenshot of one of the samples included in controls, I am trying to drag (& drop) rectangle onto diagram, how can I detect an item being dragged on it?

Parents
  • 2180
    Offline posted

    Hello Abs,

    There is no specific event triggered when an item from the toolbox is being dragged and moved within the xamDiagram control.  The events for the toolbox item dragging from the toolbox are handled internally and there are no publicly exposed events.

    Several events are triggered when the item is already dropped within the xamDiagram surface. These are the XamDiagram ItemAdding, ItemAdded, NodeMoving and NodeMoved events.

    If this is an option for you, you can handle the PreviewMouseDown and PreviewMouseUp events to handle when a toolbox item is clicked and when the mouse button is released for the DiagramToolboxCategoryItem.

    I’ve attached a sample project demonstrating this.

    DiagramEvents.zip
Reply Children