XAML auto resize a tab' content
PHP Code:
<TabControl Name="tabCtrl" Grid.Column="2" Margin="0,1,10,25" Grid.Row="1">
<TabItem Header="image" Name="tabItem1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="177*" />
<ColumnDefinition Width="234*" />
</Grid.ColumnDefinitions>
<Image HorizontalAlignment="Stretch" Margin="3,3,3,0" Name="scrImg" Stretch="Fill" VerticalAlignment="Stretch" Grid.ColumnSpan="2" />
</Grid>
</TabItem>
<TabItem Header="list all">
<ListView Grid.RowSpan="2" Height="217" Name="lvlistall" Width="408" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center">
<ListView.View>
<GridView>
<GridViewColumn Header="Name" Width="310" />
<GridViewColumn Header="Class ID" Width="120" />
</GridView>
</ListView.View>
</ListView>
</TabItem>
</TabControl>
I have a tabcontrol . I put an image control on one tab and a listview control on the other. This tabcontrol is wrapped in a dockpanel. When I mazimize the window, the one tab control also mazimizes, OK, but the tab with the listview doesn't show mazimized listview, the listview stays the same size. Anyone can help me make it docked to the tab so that when mazimizing the main windows also mazimizes the listview ?
Thank youuuuu
Re: XAML auto resize a tab' content
You meed to send this to WPF forum: http://www.codeguru.com/forum/forumdisplay.php?f=99
BTW, what is "mazimize"?
Re: XAML auto resize a tab' content
Re: XAML auto resize a tab' content
Notice the differences between the properties of the image control vs. the list control. The image control has properties set to 'stretch' whereas the list control does not. Try setting the list control the same.