Home Forums WPF controls Xceed DataGrid for WPF Grid in TabItem does not fill

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #23530 |

    Hi,

    I am placing my Grid in an ordinary TabItem. I would like to fill the TabItem the whole screen. Very simple… however it does not work. Here is the XAML code, thanks in advance!

    <Window
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;
    xmlns:xcdg=”http://schemas.xceed.com/wpf/xaml/datagrid&#8221;
    x:Class=”SafeLogistics.Test”
    x:Name=”Window”
    Title=”Test”
    Width=”Auto” Height=”Auto”>
    <Window.Resources>

    </Window.Resources>

    <TabPanel HorizontalAlignment=”Stretch” OverridesDefaultStyle=”False” VerticalAlignment=”Stretch” xcdg:Cell.IsCellFocusScope=”False” Width=”Auto” Height =”Auto”>
    <TabControl IsSynchronizedWithCurrentItem=”True” HorizontalAlignment=”Stretch” VerticalAlignment=”Stretch” Width=”Auto” Height =”Auto”>
    <TabItem Header=”TabItem” x:Name=”tbItem1″ Width=”Auto” Height =”Auto”>
    <StackPanel Margin=”0,0,0,0″ Width=”Auto” Height=”Auto” Grid.IsSharedSizeScope=”False”>
    <xcdg:DataGridControl x:Name=”grid” View=”TableView.Aero.NormalColor” ItemsSource=”{Binding}” AutoCreateColumns=”False” Width=”Auto” Height=”Auto” >
    <xcdg:DataGridControl.Columns>
    <xcdg:Column FieldName=”InterneBezeichnung” Title=”InterneBezeichnung” DisplayMemberBinding=”{Binding Path=Test, Mode=TwoWay}”/>
    </xcdg:DataGridControl.Columns>
    </xcdg:DataGridControl>
    </StackPanel>
    </TabItem>
    <TabItem Header=”TabItem”>
    <Grid/>
    </TabItem>
    </TabControl>
    </TabPanel>
    </Window>

    Imported from legacy forums. Posted by Ralf (had 1887 views)

    User (Old forums)
    Member
    Post count: 23064

    My mistake was to use the TabPanel… It works well without that one. What is it good for anyway?

    Imported from legacy forums. Posted by Ralf (had 3307 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.