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

Color on Drag Cue

3 Answers 80 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 24 Apr 2009, 03:56 AM
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?

3 Answers, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 24 Apr 2009, 04:23 AM

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
0
Accepted
Dimitrina
Telerik team
answered on 27 Apr 2009, 08:25 AM
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.
0
Andrew
Top achievements
Rank 1
answered on 30 Apr 2009, 12:30 AM
Hi,


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


Thanks
Tags
DragAndDrop
Asked by
Andrew
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or