control is used to display the DragCue
and it can be styled accordingly to your needs. However, your scenario cannot be implemented out-of-the-box since the TreeViewDragCue
control is an ItemsControl
and you have to modify its ControlTemplate
and replace the ItemsPresenter
accordingly to your needs.
Also, there are a couple of points that have to be taken into consideration. Firstly, you have to make sure that the TreeViewDragCue
is changed only to the Items that cannot be properly displayed. You can handle the DragInfo
() event and do a sample if statement.
Secondly, you will have to make sure that the DragToolTipContent
of the "Grid-Headered" items is also updated accordingly. Therefore you have to handle the DropInfo
() event as well.
I prepared a sample project for you , illustrating the described approach.
Still, I was wondering why you need to set the RadTreeViewItem Header
to a Grid
. If you need to display an Image
within each RadTreeViewItem
, you can take advantage of the built-in Image functionality of the RadTreeViewItem
. You can find more info here
. I also demonstrated this approach in the attached example. As you can see, in this case, you don't have to manually configure the TreeViewDragCue
I hope this information helps. Please let us know if you need more info.
the Telerik team
Browse the videos here>>
to help you get started with RadControls for Silverlight