This question is locked. New answers and comments are not allowed.
Hello!
I am currently evaluating the DragAndDrop-Functionality - unfortunately I ran into some kind of graphic invalidation problem.
I am dragging from a custom usercontrol to a RadTreeView that's a child of a RadExpander. A snapshot of the result is attached as a png file. Has anyone experienced such a behavior? What am I doing wrong? Or is it a bug?
My code is very simple! I just activate the DragAndDrop-Functionality, register the events and then for the source and the destination in the code-behind:
Source:
Destination:
That's all. Any ideas?
Thanks a lot,
Tim.
I am currently evaluating the DragAndDrop-Functionality - unfortunately I ran into some kind of graphic invalidation problem.
I am dragging from a custom usercontrol to a RadTreeView that's a child of a RadExpander. A snapshot of the result is attached as a png file. Has anyone experienced such a behavior? What am I doing wrong? Or is it a bug?
My code is very simple! I just activate the DragAndDrop-Functionality, register the events and then for the source and the destination in the code-behind:
Source:
private void OnDragQuery(object sender, DragDropQueryEventArgs e) { e.Options.DragCue = RadDragAndDropManager.GenerateVisualCue(); e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue(); e.Options.Payload = "Hello World"; e.QueryResult = true; e.Handled = true; }Destination:
private void OnDropQuery(object sender, DragDropQueryEventArgs e) { e.QueryResult = true; e.Handled = true; } private void OnDropInfo(object sender, DragDropEventArgs e) { string payload = e.Options.Payload.ToString(); if (e.Options.Status == DragStatus.DropComplete) this.myTreeView.Items.Add(payload); }That's all. Any ideas?
Thanks a lot,
Tim.