|
-
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
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
|