I think this isn’t a specific TreeView question, anywat I had the issue using TreeView.
My event handler follows the Windows Forms counterpart
private void treeView1_DragOver(object sender, DragEventArgs e)
{
var tv = (TreeView)sender;
var position = tv.PointToClient(new Point(e.X, e.Y));
var destinationNode = tv.GetNodeAt(position);
// etc
}
But GetNodeAt doesn’t exist on Wisej.Web.TreeView.
Digging a bit more, I found that GetChildAtPoint doesn’t exist either.
Questions:
Hi Tiago,
both WJ-8355 and WJ-8359 are added in Wisej 1.3.82
Best regards
Frank
So I did, thus this post. It happens to be null on the DragOver event. Sorry I forgot to mention it, but I assumed it was null by design.
Hi Tiago,
the next Wisej build will include the following 2 enhancements:
WJ-8355 – Add Control.GetChildAtPoint() to retrieve control at specified coordinates
WJ-8359 – Add DropTarget to DropMove event
Best regards
Frank
Hi Tiago,
to determine the target of a Drag/Drop operation, please take a look at DragEventArgs.DropTarget
Hope that helps.
Best regards
Frank
Please login first to submit.