how to add grid to control in wpf

I would loke to add grid in wpf to a control like panel or view or grid. as I create the grid dynamically and I want the grid to added to specific control so I would have space in the window to other control.
dpatel_teamAsked:
Who is Participating?
 
jagrut_patelConnect With a Mentor Commented:
Any of the available container controls like Grid, StackPanel, WrapPanel, DockPanel, etc. can have other controls as their children. You can host your dynamically created grid in a cell of another grid or in a stackpanel or some other container. Which container control to choose depends on your screen layout requirement.

If you choose to add your dynamically created grid into some cell of another grid then other controls can be placed in remaining cells of the container grid.
0
 
dpatel_teamAuthor Commented:
Let me rephrase- I would like to know which control can have grid as a child
0
 
Easwaran ParamasivamCommented:
Even grid can be used as container. Please do check the link http://msdn.microsoft.com/en-us/library/bb514628(v=vs.90).aspx for other containers.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.