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
240
Disable drag and drop functionality for XamDiagramToolbox
posted

HI,

I have a requirement to prevent drag and drop for items inside placed inside DiagramToolboxCategory. Can you please guide me the approach to implement this. I have been trying with previewmousedown events but looks like it is internal behaviour of the control.

At high level, user should be able to view the items inside DiagramToolboxCategory.

Thanks and Regards,

Shashikanth N.

  • 25665
    Offline posted

    Hello Shashikanth,

    Thank you for contacting Infragistics!

    You can mark the XamDiagramToolbox PreviewMouseDown as handled to prevent dragging.

            private void XamDiagramToolbox_PreviewMouseDown(object sender, MouseButtonEventArgs e)
            {
                e.Handled = true;
            }