This question is locked. New answers and comments are not allowed.
Hello,
so the problem is to adjust mouse cursor position while dragging an item from TreeListView control.
I looked through the forum topics but nothing helped. I am using OnDragInitialize event handler
where I set the DragVisualOffset and DragVisual properties of DragInitializeEventArgs object:
Unfortunately, this does not work.
Any solutions are appreciated.
Thanks in advance.
Mikhail.
so the problem is to adjust mouse cursor position while dragging an item from TreeListView control.
I looked through the forum topics but nothing helped. I am using OnDragInitialize event handler
where I set the DragVisualOffset and DragVisual properties of DragInitializeEventArgs object:
private void OnDragInitialize(object sender, DragInitializeEventArgs e){ recipesDragDropBehavior.DraggedItems = GetDraggedItems(e.Data); e.DragVisual = new DragVisual() { ContentTemplate = Resources["dragComponentTooltipTemplate"] as DataTemplate, Content = recipesDragDropBehavior }; var p = new Point { X = e.RelativeStartPoint.X + 30, Y = e.RelativeStartPoint.Y + 30 }; e.DragVisualOffset = p;}Any solutions are appreciated.
Thanks in advance.
Mikhail.