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

[Solved] New floating pane in docking

1 Answer 132 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeremy
Top achievements
Rank 1
Jeremy asked on 01 Apr 2009, 04:48 PM
Is there a way to create a new pane in the floating state to the Docking layout?  I seem to be able to dynamically created a pane within an existing group in the docking, however it always goes to the docked state. 

Example:
RadDocumentPane newPane = new RadDocumentPane();  
 
newPane.Title = "New Pane";  
newPane.Header = "New Pane";  
 
MyUserControl testUserControl = new MyUserControl();  
 
newPane.Content = testUserControl;  
theBottomRadPaneGroup.Items.Add(newPane);  
 
  

Is there another portion of the docking I should add the new pane to so that it is floating?

Thank you for your help.
Jeremy

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 03 Apr 2009, 04:06 PM
Hello Jeremy,

There are few methods on the RadPane that change its state, for example this is how you float it. Then you can set its floating position and size by using the attache dproperties on RadDocking.

RadPane newPane = new RadPane();  
 
newPane.Title = "New Pane";  
newPane.Header = "New Pane";  
 
newPane.Content = "New Pane Content";  
 
myGroup.AddItem(newPane, Telerik.Windows.Controls.Docking.DockPosition.Center);  
 
newPane.MakeFloatingOnly();  
 

I hope this helps,

Greetings,
Miroslav
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Docking
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or