Hello,
does anyone have a working example to drag a FeatureClass into a textbox on a DockPane so that the path appears in the textbox? The only drag and drop example is an Excel example that does not address a DockPane.
And in the documentation, a parameter of type DropData should be specified for the OnDrop function. Here, however, only a DropInfo object is possible ...?
public override void OnDrop(DropData dropInfo) { foreach (var item in dropInfo.Items) { if (System.IO.Path.GetExtension(item.Data as string) == ".aprx") item.Handled = true; } }
And with the DropInfo object I get neither a reference to the text box, nor to the FeatureClass.
Thank you
Alex
perfect. thanks
Hello @UmaHarano ,
Hope you are doing well.
First of all thank you for your insights regarding this problem. As you have mentioned in one of the post that
"Dragging from Contents pane is not yet supported using the public API. It will be available with 2.5 that is scheduled to be released in Jan 2020."
Is Public API for Dragging from Contents pane is available? If yes, Then could you please help me with the resources.
Thanks,
Abhijeet