This question is locked. New answers and comments are not allowed.
Hello there,
I have a RadDataForm in which I added a custom template, and in this template I added a TabControl with a few TabItems.
My problem is that the TabItems (a.k.a. tab pages) adjust the height to the contents in stead of being height 100%. How can I achieve all TabItems filling the height 100%?
Here is my XAML (RadTabControl is on line 14):
I have a RadDataForm in which I added a custom template, and in this template I added a TabControl with a few TabItems.
My problem is that the TabItems (a.k.a. tab pages) adjust the height to the contents in stead of being height 100%. How can I achieve all TabItems filling the height 100%?
Here is my XAML (RadTabControl is on line 14):
<UserControl x:Class="ModulePackage.Views.GridView" xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" mc:Ignorable="d" d:DesignHeight="414" d:DesignWidth="763" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my="clr-namespace:ModulePackage.Views"> <Grid> <Grid.Resources> <DataTemplate x:Key="ModulesInPackageTemplate"> <Grid> <telerik:RadTabControl> <telerik:RadTabItem Header="General"> <telerik:DataFormDataField Label="Name" DataMemberBinding="{Binding Name, Mode=TwoWay}" /> </telerik:RadTabItem> <telerik:RadTabItem Header="Modules"> <my:ModulesInPackage Height="300" HorizontalAlignment="Left" x:Name="modulesInPackage" VerticalAlignment="Top" Loaded="modulesInPackage_Loaded"/> </telerik:RadTabItem> </telerik:RadTabControl> </Grid> </DataTemplate> </Grid.Resources> <telerik:RadDocking Name="RadDocking" HasDocumentHost="False"> <telerik:RadSplitContainer Name="RadSplitContainerTop" InitialPosition="DockedTop" Width="Auto" Height="30"> <telerik:RadPaneGroup Name="RadGroupToolBar" Background="Transparent" BorderThickness="0"> <telerik:RadPane Name="RadPaneToolBar" PaneHeaderVisibility="Collapsed"> <telerik:RadToolBarTray Name="RadToolBarTray" VerticalAlignment="Top"> <telerik:RadToolBar Name="RadToolBar"> <Button Content="Manage Modules" Height="23" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Click="button1_Click" /> </telerik:RadToolBar> </telerik:RadToolBarTray> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> <telerik:RadSplitContainer Name="RadSplitContainerBottom" InitialPosition="DockedLeft" Orientation="Horizontal"> <telerik:RadPaneGroup Name="RadGroup1" > <telerik:RadPane Name="GridViewPane" PaneHeaderVisibility="Collapsed"> <telerik:RadGridView x:Name="RadGridView" /> </telerik:RadPane> </telerik:RadPaneGroup> <telerik:RadPaneGroup Name="RadGroup2" > <telerik:RadPane Name="ReadingPane" PaneHeaderVisibility="Collapsed"> <telerik:RadDataForm Name="RadDataForm" AutoGenerateFields="False" NewItemTemplate="{StaticResource ModulesInPackageTemplate}" EditTemplate="{StaticResource ModulesInPackageTemplate}" ReadOnlyTemplate="{StaticResource ModulesInPackageTemplate}"/> </telerik:RadPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking> <telerik:RadBusyIndicator Name="RadBusyIndicator" IsBusy="{Binding Path=IsBusy, ElementName=_domainDataSource}" telerik:Theming.Theme="Expression_Dark" Visibility="Collapsed" /> </Grid></UserControl>