Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Hierarchical grids

 
 
Old 12-18-2006   #1 (permalink)
nickdu


 
 

Hierarchical grids

If I want to create a grid type UI in which each row can be expanded or
collapsed and when expanded it displays another grid below the line which
contains all the rows which make up the expanded row, what WPF control, if
any, might be the best to work with? Table? Grid?
--
Thanks,
Nick

nicknospamdu@community.nospam
remove "nospam" change community. to msn.com

My System SpecsSystem Spec
Old 12-18-2006   #2 (permalink)
J


 
 

Re: Hierarchical grids

Hello,
there is no Table layout control in WPF. The Grid is what you need (or
an Uniform Grid). The Grid has a RowDefinitions property which gives
you all the means of manipulating rows and columns, you can modify the
height, width, etc. The layout functions great, think of the Grid as a
2D StackPanel.
http://msdn2.microsoft.com/en-us/lib...finitions.aspx

Good luck.
Andrei Iacob

On Dec 18, 8:51 pm, nickdu <nicknospa...@community.nospam> wrote:
> If I want to create a grid type UI in which each row can be expanded or
> collapsed and when expanded it displays another grid below the line which
> contains all the rows which make up the expanded row, what WPF control, if
> any, might be the best to work with? Table? Grid?
> --
> Thanks,
> Nick
>
> nicknospa...@community.nospam
> remove "nospam" change community. to msn.com


My System SpecsSystem Spec
Old 12-19-2006   #3 (permalink)
nickdu


 
 

Re: Hierarchical grids

Thanks, I'll check it out. But what do you mean when you say there is no
Table layout control? There is a Table control, right? And I assume it does
some sort of flow layout.
--
Thanks,
Nick

nicknospamdu@community.nospam
remove "nospam" change community. to msn.com


"J" wrote:

> Hello,
> there is no Table layout control in WPF. The Grid is what you need (or
> an Uniform Grid). The Grid has a RowDefinitions property which gives
> you all the means of manipulating rows and columns, you can modify the
> height, width, etc. The layout functions great, think of the Grid as a
> 2D StackPanel.
> http://msdn2.microsoft.com/en-us/lib...finitions.aspx
>
> Good luck.
> Andrei Iacob
>
> On Dec 18, 8:51 pm, nickdu <nicknospa...@community.nospam> wrote:
> > If I want to create a grid type UI in which each row can be expanded or
> > collapsed and when expanded it displays another grid below the line which
> > contains all the rows which make up the expanded row, what WPF control, if
> > any, might be the best to work with? Table? Grid?
> > --
> > Thanks,
> > Nick
> >
> > nicknospa...@community.nospam
> > remove "nospam" change community. to msn.com

>
>

My System SpecsSystem Spec
Old 12-19-2006   #4 (permalink)
Keith Patrick


 
 

Re: Hierarchical grids

A Table is a very document-centric layout control that is derived from
text-based controls. It has specialized logic for flowing text within a
block. A Grid, on the other hand, is a very general purpose layout control
and MUCH more common than Table in XAML code. Remember how people used to
(and still do, even though <div>s/CSS2 are recommended) use <table>s for
HTML layout? That's what a Grid is for in WPF. If you want to place
buttons, images, textboxes, etc. on a page, use the Grid; if you want to
write a word processor or publishing tool where your content needs to
dynamically flow (a stream of text flows differently than a bunch of
disparate controls) across sections of the page, you would use the Table.


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Hierarchical start menu Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46