Reputation: 6427
I would like to know - which WPF control can have grid as a child as I want to insert grid to control (dynamically)
Upvotes: 2
Views: 114
Reputation: 15999
Any control that inherits from ContentControl
is capable of containing any other single control, and any control that inherits from Panel
can contain multiple instances of any other control.
In practice, this means that a large number of controls can potentially contain your Grid
. If you only want a single Grid
to appear in the control, and you do not need any other specific behaviour, I would recommend using an instance of ContentControl
Upvotes: 9