I have a TreeView where the user drags a node and drops it on a Label. When they drag over the label, I set the DragTooltipContent to some text about the label, and set IsDropPossible to true in the OnDropQuery Handler. This works fine, but if they move the cursor off the label, the text is still displayed, and the arrow image (drop is allowed) is still displayed. How do I reset the DragTooltip when they leave the label without dropping?
void
lblContextName_OnDropQuery(
object
sender, DragDropQueryEventArgs e)
{
Label lbl = (Label)sender;
((TreeViewDragCue)e.Options.DragCue).DragTooltipContent =
"Add to '"
+ lbl.Content +
"'"
;
((TreeViewDragCue)e.Options.DragCue).IsDropPossible =
true
;
e.QueryResult =
true
;
}