Dean

Dean

  • NA
  • 18
  • 25.1k

How to resize a tab control to fit window...

Dec 18 2012 4:36 AM
Hi all,

As the title suggests I need the tab control (and its contents) to resize as the user stretches the window. Pleas see XAML below...

  <TabControl Margin="10,111,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Height="auto"   Width="auto" Grid.Row="0">
            <TabItem Header="NetComponents">
                <Grid Background="#FFE5E5E5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="695"/>
                    </Grid.ColumnDefinitions>
                    <WebBrowser x:Name="NetComponentsBrowser" HorizontalAlignment="Left" Height="415" Margin="10,10,0,0" VerticalAlignment="Top" Width="929" Grid.ColumnSpan="2"/>
                  
                </Grid>
            </TabItem>
            <TabItem Header="TabItem">
                <Grid Background="#FFE5E5E5"/>
            </TabItem>
        </TabControl>
     
Thanks,
Dean.



Answers (6)