Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Assign Proportional widths to a group of RadSplitContainers

$
0
0
Hi George,

With the current version of RadDocking setting a fixed size to the Pane or Group is not supported and might lead to some unexpected behavior. Because of that in order to set a size to the Pane we suggest to use the ProportionalStackPanel.RelativeSize attached property.

That panel is provided by the SplitContainer element in the Docking control and it inherits the default WPF panel class. Its RelativeSize property is used to divide the width and height occupied by the RadPaneGroups placed in the same RadSplitContainer. For example if you have two SplitContainers and you want the first one to occupy 1/3 of the available width you need to set the RelativeSize to "200,200" and the second SplitContainer should have size "400,200" - thus it will occupy the remaining 2/3. The same is also valid if you want to divide the height - 400 indicates the width of the size and 200 is the height.

Please, check the attached sample project that demonstrates how achieve the desired by you sizing of the SplitContainers and let us know if it worked for you.

Hopes this helps.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>