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

Drop event and child windows

2 Answers 115 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
leviathan
Top achievements
Rank 1
leviathan asked on 29 May 2009, 08:17 AM
Hi,

I'm trying to use the drag drop control in a silverlight child window. Unfortunately, I am still unable to catch the DropInfoEvent and DropQueryInfo events (both drag events work). I tried to put the exact same code out of the child window (in a UserControl for instance) and everything works fine. Does anyone know what the problem might be?

Thanks in advance.

Regards

2 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 29 May 2009, 08:36 AM
Hi leviathan,

I guess you are using the Silverlight 3 Child Window.

"Windows" in Silverlight come up in popups and by default popups are not part of the main visual tree. Therefore the DragDrop does not know about them.

There is a property on the DragDrop option, called ParticipatingVisualRoots. You can add the currently opened child windows there and they will participate in the DragDrop. I guess you can keep a static collection with all the opened windows and add it during DragInfo.

You can do this transparently by adding a DragInfo handler to the root visual of the application that will do this for every successful drag operation.

We will look into making this easier after the Q2 release. Currently we build the controls for the Silverlight 2, we will be adding Silverlight 3 specific features after this release.

On a side note, you can use the Telerik RadWindow which works out of the box with DragDrop.

Sincerely yours,
Miroslav
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
leviathan
Top achievements
Rank 1
answered on 29 May 2009, 08:49 AM
Hello Miroslav ,

Thanks a lot for the quick reply.

I added my child window to the ParticipatingVisualRoots collection and it is working fine.

Regards,

Leviathan


Tags
DragAndDrop
Asked by
leviathan
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
leviathan
Top achievements
Rank 1
Share this question
or