CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2010
    Posts
    13

    Arrow 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

  2. #2
    Join Date
    Jul 2002
    Posts
    2,474

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

  3. #3
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+) ovidiucucu has a reputation beyond repute (3000+)
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    7,888

    Re: XAML auto resize a tab' content

    [ Moved thread ]

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+)
    Join Date
    Aug 2004
    Posts
    10,337

    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.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width