I have create a User control component
public partial class MonitorControl : UserControl
and the drag and drop from the left toolbar like dropping a camera is not working, when debugging it seems that the event is not being triggered (allowDrop is set to true)
canvas.Drop += Canvas_Drop;
private void Canvas_Drop(object sender, DragEventArgs e)
This problem only occurred from smart client 2024 and later even in the smart client 2025
Also when I am using the ImageViewerControl which is a UserControl component created by the milestone developers the drag and drop feature is working
Can you provide us with a way to fix it?
Below are images attached for better understanding of the problem
In this the drop action is triggered on the ImageViewerControl and can be seen by the mouse cursor
in this below it is not triggered on my UserControl and can be seen by the the mouse cursor with a red circle
Please see my newer post, this answer was incorrect.
There is unfortunately no support for drag-drop to your own controls. Also seen in the reply here - https://developer.milestonesys.com/s/question/0D5bH00000Yy08CSAR/drag-and-drop-not-working-on-smart-client-2024-r1
Is there a way to see all the milestone component that support this drag and drop from the left toolbar like the ImageViewControl?
The Smart Client allows drag-drop of a camera onto its built-in camera view items, this uses the ImageViewerWpfControl underneath but I wouldn’t say it is the same.
In setup you can drag-drop the different kinds of view items onto a view position and this includes view items in a MIP plugin you have developed.
When it comes to MIP plugins there is no support for drag-drop beyond the setup scenario.
We’re actually experiencing the exact same issue since Smart Client 2024 R1. It used to work before, but now drag-and-drop from the left toolbar doesn’t seem to trigger anything on our custom controls.
Is there an official workaround or recommended way to achieve similar functionality? Or perhaps a fix or improvement planned for a future release?
Thanks in advance for your help.