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

Change Arrow Cue color Color

3 Answers 51 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Seb
Top achievements
Rank 1
Seb asked on 11 Feb 2011, 10:13 AM
Hi,

I would like to change the color of arrow cue in my project, but there is a conversion type problem when I use the code found here: http://www.telerik.com/help/silverlight/raddraganddrop-howto-change-color-arrow-cue.html

I join a picture of my error in this thread.

Thanks to answer me.


3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 11 Feb 2011, 10:24 AM
Hi Taymans,

The created arrowCue is of type ContentControl and you cannot convert it to Brush. You may take another look at the mentioned article to verify that this conversion is not present.

Best wishes,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Seb
Top achievements
Rank 1
answered on 11 Feb 2011, 10:58 AM
Hi,

I was not converting for my pleasure.
If i don't, there is an IMPLICIT convert error, see in attachment.

Thanks for your answer.
0
Maya
Telerik team
answered on 16 Feb 2011, 02:16 PM
Hi Taymans,

Please excuse me for the misunderstanding. The mistake is actually in the documentation and it has immediately been corrected. The definition should be as follows:

var arrowCue = RadDragAndDropManager.GenerateArrowCue();
arrowCue.Background = new SolidColorBrush(Colors.Red);
e.Options.ArrowCue = arrowCue;

 

All the best,
Maya
the Telerik team
Tags
DragAndDrop
Asked by
Seb
Top achievements
Rank 1
Answers by
Maya
Telerik team
Seb
Top achievements
Rank 1
Share this question
or