![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Hierarchical start menu | Vista General | |||