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

How to resize the RadPane to fit the content ?

3 Answers 291 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 23 Nov 2010, 01:22 PM
Hi,

Is there any way by which a RadPane's size is set to content i.e. it takes the size exactly to fit the content when it is slide out.

If it is possible, please let me know how.

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 24 Nov 2010, 05:11 PM
Hello Nitin,

The RadPane represents only the small tabs in the RadDocking control. Could you please specify why do you want to resize it? For more information about visual structure of the RadDocking, please refer to the following link - http://www.telerik.com/help/silverlight/raddocking-visual-structure.html 

I will be glad to assist you further.

Sincerely yours,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Nitin
Top achievements
Rank 1
answered on 25 Nov 2010, 06:40 AM
Hi George,

I want to put a fixed width user control inside the RadPane and if user would be allowed to resize, user control would get clipped if user will decrease the pane width and a lot of empty space would be visible if user increase the pane width.

So I want to restrict the user to resize the pane. I want that the pane width should be same as width of my user control and user would not be allowed to resize the pane in all the states i.e. user would not be allowed to resize the content popup, toolwindow, and the pane.
0
George
Telerik team
answered on 30 Nov 2010, 04:23 PM
Hello Nitin,

Unfortunately, this scenario is not supported by RadDocking control. I would suggest you to handle SizeChanged event handler of the RadPaneGroup and to add custom logic. 

All the best,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
Docking
Asked by
Nitin
Top achievements
Rank 1
Answers by
George
Telerik team
Nitin
Top achievements
Rank 1
Share this question
or