Multiple grids in one area

Posted by anon on Stack Overflow See other posts from Stack Overflow or by anon
Published on 2010-06-15T19:48:29Z Indexed on 2010/06/15 21:32 UTC
Read the original article Hit count: 213

Filed under:
|
|

I'm currently creating a WPF application, using C# and XAML in Visual Studios 2010.

I have a master grid. In that master grid I have a group bar which you can select different items. Depending on what you select, the middle of the master grid can be totally different. What I was wondering is, what's the best way to program the middle part?

Right now, I have it set up in such a way that everything in the middle is dynamically programed in C#, and everything on the outside is programmed in XAML.

In C# I programmed: for each group bar item, there is a grid that goes with it (so that different content can be displayed on it). Each grid is a child of the master grid. Each grid is visible or hidden when necessary. Is this the best way to approach this?

The best example of this is in Outlook 2007, where you have your group bar on the right hand side. When you select different items on the group bar (mail, calendar, tasks) the right of the group bar completely changes.

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf