title: StackPanel vs DataGrid vs DockPanel in WPF
body: <p>I will need to dynamic generate a square matrix of "boxes"(e.g. 2x2, 3x3 etc.), each containing a textbox and a button. These boxes and text will also resize according the the size of the window.  Shall I approach this problem using stackPanel, datagrid or dockpanel and what are their advantages or disadvantages? Appreciate for any suggestion.</p>
  
  <p>Developed by WPF, VS2010.</p>