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

maintain current size from panned pane to floating pane

1 Answer 23 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Mayra
Top achievements
Rank 1
Mayra asked on 22 Oct 2011, 07:03 AM
Is there a way to maintain current size from panned pane to floating pane?

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 26 Oct 2011, 09:01 AM
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 >>
Tags
Docking
Asked by
Mayra
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or