How to create reusable WPF grid layout
- by zendar
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.