Color on Drag Cue

4 posts, 1 answers
  1. Andrew
    Andrew avatar
    26 posts
    Member since:
    Apr 2009

    Posted 23 Apr 2009 Link to this post

    Hi,


    Implementing drag and drop between two GridViews, I am hoping to add feedback about whether the drag n drop is possible

    On event "OnDragQuery", I can do the following successfully



    ArrowCue.Background = new SolidColorBrush(Colors.red); 

    However trying to set the DragCue as a Rectangle with filled color does not work. It always seems to be a transparent orange

     

    e.Options.DragCue = RadDragAndDropManager.GenerateVisualCue(new Rectangle() { Width = 30, Height = 30, Fill = new SolidColorBrush(Colors.Green) });  
     

    Suggestions?
  2. Andrew
    Andrew avatar
    26 posts
    Member since:
    Apr 2009

    Posted 23 Apr 2009 Link to this post

    Also the following didn't work either

                    ContentControl content = RadDragAndDropManager.GenerateVisualCue(e.Options.Source);  
                    content.Background = new SolidColorBrush(System.Windows.Media.Color.FromArgb(0x53, 0x00, 0x00, 0xFF));   
                    e.Options.DragCue = content; 

    I am settling for just changing the ArrowCue color at the moment, so it isn't a massive problem

    Thanks
  3. DevCraft banner
  4. Answer
    Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 27 Apr 2009 Link to this post

    Hi Andrew,

    Thank you for your feedback. You can change these colors using the "DragArrow" property.
    You can also use "Blend" to edit the property in a more user-friendly manner. I prepared a small sample which you can see in the attached file.

    Kind regards,
    Dimitrina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Andrew
    Andrew avatar
    26 posts
    Member since:
    Apr 2009

    Posted 29 Apr 2009 Link to this post

    Hi,


    Defining my rectangle with a different color inside a DataTemplate, then setting the ContentTemplate as that DataTemplate worked


    Thanks
Back to Top