I want to know if it is possible to make a WPF UserControl and having sub/children UserControls or not?
And If it's possible what would be the best approach to do so or where shall I start.

For example:

```
<CustomMenu>
     <CustomMenuItem x:Name="menuItem1" />
     <CustomMenuItem x:Name="menuItem2" />
     ....
</CustomMenu>

```

What is in my mind is to have that `UserControl` take some information and properties and its children have other properties which identifies them.

I've tried to make a variable in the parent UserControl such as `UIElementCollection` and represented in the `XAML file` as `StackPanel` but that wasn't exactly what I wanted specially it allowed to have other children from a different type and I couldn't set any properties for the parent `UserControl` such as the width

I'm still beginner in the WPF, so I know I must miss and don't know a lot of stuff so bear me please.

I appreciate all the help or guidance.
Thank you.

**Edit:**

After applying the solution of @Dennis (<https://stackoverflow.com/a/21373956/3157993>) which worked perfectly, I've noticed that a strange behavior, that if I've another instance of that UserControl in another Window or Page it will accumulate the items of the first menu, in the second one. For example: if I have a menu in the home, and another one in other page, when I open the Home, it will appear perfectly, but if I opened the other page I will have the items of the menu in the first page alongside by the items of the menu in the second page. – Nirvana Priest