Hi,
I am using a RadTreeView setting the IsDragDropEnabled to true, instead of RadDragAndDropManager.AllowDrag.
My goal is to change the DragCue.DragActionContent to "Copy to" when the user presses the Control key.
The DragActionContent property seems to return the current content but changes are not registered unless property is initially null.
Is this the proper method to alter the DragCue when using IsDragDropEnabled?
Thank you,
Justin
I am using a RadTreeView setting the IsDragDropEnabled to true, instead of RadDragAndDropManager.AllowDrag.
My goal is to change the DragCue.DragActionContent to "Copy to" when the user presses the Control key.
_treeView.AddHandler(RadDragAndDropManager.DropQueryEvent,
new
EventHandler<DragDropQueryEventArgs>(MainTree_DropQuery),
true
);
private
void
MainTree_DropQuery(
object
sender, DragDropQueryEventArgs e)
{
if
(Keyboard.Modifiers == ModifierKeys.Control)
{
TreeViewDragCue cue = e.Options.DragCue
as
TreeViewDragCue;
cue.DragActionContent =
"Copy To"
;
}
e.QueryResult = true;
}
The DragActionContent property seems to return the current content but changes are not registered unless property is initially null.
Is this the proper method to alter the DragCue when using IsDragDropEnabled?
Thank you,
Justin