Get/Set the current location of a floating window

3 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    8 posts
    Member since:
    Jun 2009

    Posted 24 Jun 2009 Link to this post

    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. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 26 Jun 2009 Link to this post

    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.
  3. Jonathan
    Jonathan avatar
    8 posts
    Member since:
    Jun 2009

    Posted 29 Jun 2009 Link to this post

    Excellent. Thank you!
Back to Top