I have a very simple control. It just displays a textbox.
<my:usercontrol x:Name="myControl" />
I would like to use my control as following:
<my:usercontrol x:Name="myControl">
<sdk:Label x:Name="InnerControl" Content="Hello World" />
</my:usercontrol>
How do I gain access to the “InnerControl” from within “myControl”?
Since you defined a name for your Label, you can access it in the codebehind file of your UserControl by using its name
Example: