How to create reusable WPF grid layout

Posted by zendar on Stack Overflow See other posts from Stack Overflow or by zendar
Published on 2010-05-21T16:33:45Z Indexed on 2010/05/23 0:00 UTC
Read the original article Hit count: 264

Filed under:
|
|
|

I have a window with tab control and number of pages - tab items. Each tab item has same grid layout - 6 rows and 4 columns. Now, each tab item contains grid with row and column definitions, so almost half of XAML is definition of grids.

How can I define this grid in one place and reuse that definition in my application? Template? User control?

Besides 6x4, I have only two more grid dimensions that repeat: 8x4 and 6x6.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about beginner