-
December 13th, 2010, 04:20 AM
#1
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
-
December 13th, 2010, 04:45 AM
#2
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"?
-
December 13th, 2010, 04:47 AM
#3
Re: XAML auto resize a tab' content
-
December 13th, 2010, 05:36 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|