Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Hierarchical grids

Closed Thread
 
Thread Tools Display Modes
Old 12-18-2006   #1 (permalink)
nickdu
Guest


 

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
Old 12-18-2006   #2 (permalink)
J
Guest


 

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


Old 12-18-2006   #3 (permalink)
J
Guest


 

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


Old 12-19-2006   #4 (permalink)
nickdu
Guest


 

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

>
>

Old 12-19-2006   #5 (permalink)
nickdu
Guest


 

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

>
>

Old 12-19-2006   #6 (permalink)
Keith Patrick
Guest


 

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.


Old 12-19-2006   #7 (permalink)
Keith Patrick
Guest


 

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.


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hierarchical start menu Frank Rizzo Vista General 7 04-06-2007 03:48 AM
How to Compose a Page From Grids Defined Outide the Page? Chris Moore Avalon 10 11-11-2006 12:24 PM








Vistax64.com 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 2005-2008

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 47 48 49 50