maintain current size from panned pane to floating pane

2 posts, 0 answers
  1. Mayra
    Mayra avatar
    18 posts
    Member since:
    Oct 2011

    Posted 22 Oct 2011 Link to this post

    Is there a way to maintain current size from panned pane to floating pane?
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 26 Oct 2011 Link to this post

    Hello Mayra,

    In order to set the size of the pane when floating, you need to get the ToolWindow in which the pane is put and set its size. You could do this in the PaneStateChange event, for example:

    private void radDocking_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e)
     {
         foreach (RadPane pane in radDocking.Panes)
         {
             if (pane != null && pane.IsFloating)
             {
                 ToolWindow toolWindow = pane.GetParentToolWindow();
                 toolWindow.Width = 100;
                 toolWindow.Height = 100;
                   
             }
         }
     }

    Hope this information helps.

    Greetings,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
Back to Top