This question is locked. New answers and comments are not allowed.
I've got two RadPaneGroups in a vertical RadSplitContainer. The first one needs to always be 130 pixels high. The second one needs to always fill the remaining space. Because of the differences in user screen resolutions and full screen or not, I can't use relative heights. I've attached a screenshot that shows the splitter, outlined in aqua and the second RadPaneGroup, outlined in red. As you can see, the second pane is scrolling, even though there is lots of available space in the splitter.
How can I make the second pane fill the available space?
Here's the appropriate portion of my xaml:
How can I make the second pane fill the available space?
Here's the appropriate portion of my xaml:
<telerikDocking:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" VerticalAlignment="Stretch" BorderBrush="Aqua" BorderThickness="3"> |
<telerikDocking:RadPaneGroup Height="130" VerticalAlignment="Top" > |
<telerikDocking:RadPane Header="Toolbox" ScrollViewer.VerticalScrollBarVisibility="Visible" VerticalAlignment="Top"> |
<ScrollViewer VerticalScrollBarVisibility="Auto"> |
<msCore:ListBox x:Name="lstToolbox" Grid.Column="0" dragDrop:RadDragAndDropManager.AllowDrop="True" |
ItemContainerStyle="{StaticResource draggableItemStyle}" > |
<ListBox.ItemTemplate> |
<DataTemplate> |
<StackPanel Orientation="Horizontal"> |
<Image Source="{Binding IconPath}" Height="16" /> |
<TextBlock Text="{Binding Name}" Margin="5,0,5,0" /> |
</StackPanel> |
</DataTemplate> |
</ListBox.ItemTemplate> |
</msCore:ListBox> |
</ScrollViewer> |
</telerikDocking:RadPane> |
</telerikDocking:RadPaneGroup> |
<telerikDocking:RadPaneGroup BorderBrush="Red" BorderThickness="5" VerticalAlignment="Stretch" > |
<telerikDocking:RadPane Header="Properties" VerticalAlignment="Stretch"> |
<ScrollViewer VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch"> |
<radGridView:RadGridView x:Name="gvProperties" VerticalAlignment="Stretch" AutoGenerateColumns="False" |
ScrollViewer.HorizontalScrollBarVisibility="Auto" ShowColumnHeaders="False" CanUserSelect="False" GridLinesVisibility="Both" ShowGroupPanel="False" |
ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollMode="Deferred" RowIndicatorVisibility="Collapsed" CanUserDeleteRows="False" CanUserInsertRows="False" |
BeginningEdit="gvProperties_BeginningEdit" CellEditEnded="gvProperties_CellEditEnded" CellValidating="gvProperties_CellValidating"> |
<radGridView:RadGridView.Columns> |
<radGridView:GridViewDataColumn UniqueName="PropAlias" Width="100"/> |
<radGridView:GridViewDataColumn UniqueName="PropValue" Width="1*"/> |
</radGridView:RadGridView.Columns> |
</radGridView:RadGridView> |
</ScrollViewer> |
</telerikDocking:RadPane> |
</telerikDocking:RadPaneGroup> |
</telerikDocking:RadSplitContainer> |