![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 |
| | #2 (permalink) |
| 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 |
| | #3 (permalink) |
| 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 |
| | #4 (permalink) |
| 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 > > |
| | #5 (permalink) |
| 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 > > |
| | #6 (permalink) |
| 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. |
| | #7 (permalink) |
| 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. |
| |
| |
![]() |
| 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 |