This is a migrated thread and some comments may be shown as answers.
Get/Set the current location of a floating window
2 Answers 73 Views
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 25 Jun 2009, 02:17 AM
Hello,

I am using a float dockpane/split container inside a dockingpanel to float/dock windows. Im not sure if you people are aware, but when dragging a dock window, i am able to 'throw' it off the screen. I can reproduce this behaviour in your http://demos.telerik.com/silverlight/#Docking/FirstLook example.

To recover for from this state i am looking at the ability to manipulate, get/set the floating location of the docking window because as it stands, the once you throw the window off, thats it! Its gone forever!

My code as it stands looks like:
RadSplitContainer rsp = pan.ParentOfType<RadSplitContainer >();
Point cl = RadDOcking.GetFloatingLocation(rsp); //trying to find th current location of the window???
RadDocking.SetFloatingLocation(rsp, new Point(20,20)); //trying to set the location..

Now the documentation regarding these methods are quite thin, im not even sure if i am using them correctly.  cl does not reflect the 'current' floating location, rather the one specified in the xaml. When set'ing, the window does not move. Do i need to repaint? update something? Re-add?

If this is not possible, im happy to dock the panel to a default location to 'recover' the window form the abyss. Could i get som example code for this? my code that uses RadDocking.SetDock() does not work either....




2 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 26 Jun 2009, 02:45 PM
Hi Jonathan,

Sorry for the caused inconvenience. We are aware of most of the issues you are mentioning and we are working to improve them for the upcoming Q2 2009 release. Attached, you can find a small application demonstrating the boundary detection functionality of the RadPane and RadSplitContainer.

All the best,
Kaloyan
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
Jonathan
Top achievements
Rank 1
answered on 30 Jun 2009, 03:53 AM
Excellent. Thank you!
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or