Hi
Would you please instruct me on how to make a top docked RadSplitContainer adjust its height to fit its content?
Here is my XAML:
If you run it, you will see that the height of the RadSplitContainer (with the Red background) is larger than the height of its content. I would like to make it shrink so it is only large enough to fits its content.
Thanks.
Would you please instruct me on how to make a top docked RadSplitContainer adjust its height to fit its content?
Here is my XAML:
<UserControl x:Class="TelerikTests.MainPage" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"> |
<radDock:RadDocking> |
<radDock:RadDocking.DocumentHost> |
<TextBlock Text="Document here" /> |
</radDock:RadDocking.DocumentHost> |
<radDock:RadSplitContainer InitialPosition="DockedTop" Background="Red"> |
<radDock:RadPaneGroup VerticalAlignment="Top" Background="Yellow" > |
<radDock:RadPane CanDockInDocumentHost="False" CanUserClose="False" Header="Top panel" CanUserPin="False" Background="Blue" > |
<Grid Background="White" VerticalAlignment="Top"> |
<TextBlock Text="Top panel content" Margin="5" /> |
</Grid> |
</radDock:RadPane> |
</radDock:RadPaneGroup> |
</radDock:RadSplitContainer> |
<radDock:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" Width="300"> |
<radDock:RadPaneGroup> |
<radDock:RadPane CanDockInDocumentHost="False" CanUserClose="False" Header="Style Elements"></radDock:RadPane> |
</radDock:RadPaneGroup> |
<radDock:RadPaneGroup> |
<radDock:RadPane CanDockInDocumentHost="False" CanUserClose="False" Header="Properties"> |
</radDock:RadPane> |
</radDock:RadPaneGroup> |
</radDock:RadSplitContainer> |
</radDock:RadDocking> |
</UserControl> |
If you run it, you will see that the height of the RadSplitContainer (with the Red background) is larger than the height of its content. I would like to make it shrink so it is only large enough to fits its content.
Thanks.