I'm looking to set a UserControl
to be the Content
of another UserControl
in XAML, in the same way you can set a Button's
Content
to be anything.
Let's say my "outer" UserControl
looks like this:
<MyUserControl>
<Grid>
<Border FancyPantsStyling="True">
<-- I want to insert other controls here -->
</Border>
</Grid>
</MyUserControl>
And I'd like to instantiate this way:
<local:MyUserControl>
<local:MyUserControl.Content>
<local:AnotherControl />
</local:MyUserControl.Content>
</local:MyUserControl>
How do I design MyUserControl
to render it's Content
in a specific location?