How to hide DragCue ??

3 posts, 0 answers
  1. Zahi
    Zahi avatar
    2 posts
    Member since:
    Feb 2012

    Posted 14 Feb 2012 Link to this post

    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. Nick
    Admin
    Nick avatar
    593 posts

    Posted 16 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Zahi
    Zahi avatar
    2 posts
    Member since:
    Feb 2012

    Posted 19 Feb 2012 Link to this post

    thank you, it is work for me

    But I have anoter Question can I drag multi items using telerick control
Back to Top