This is a migrated thread and some comments may be shown as answers.

How to hide DragCue ??

2 Answers 49 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Zahi
Top achievements
Rank 1
Zahi asked on 14 Feb 2012, 05:52 PM
I want to hide DrageCue when the Drag is impossible
-- I tried to make DrageCue to null  in the event (OnDragInfo ) but it does not work for me

 

    can some one help me with this problem


Thanks Zahi

2 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 16 Feb 2012, 12:41 PM
Hi Zahi,

Once the DragCuew is set in the DragQuery event, you cannot reset it. You can however modify it anyway you want to. Here is an example:

private void OnDragInfo(object sender, DragDropEventArgs e)
        {
            if (e.Options.Status == DragStatus.DropImpossible)
            {
                (e.Options.DragCue as ContentControl).Visibility = System.Windows.Visibility.Collapsed;
            }
            else if (e.Options.Status == DragStatus.DropPossible)
            {
                (e.Options.DragCue as ContentControl).Visibility = System.Windows.Visibility.Visible;
            }
        }

Hope this helps! 

Regards,
Nik
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Zahi
Top achievements
Rank 1
answered on 19 Feb 2012, 02:34 PM
thank you, it is work for me

But I have anoter Question can I drag multi items using telerick control
Tags
DragAndDrop
Asked by
Zahi
Top achievements
Rank 1
Answers by
Nick
Telerik team
Zahi
Top achievements
Rank 1
Share this question
or