I have one UserControl nested inside the other UserControl, something like that:
<uc:MyControl1>
<uc:MyControl2 Name="cheese"/>
</uc:MyControl2>
uc:MyControl2 contains a DP Name.
And inside uc:MyControl1 I am exposing uc:MyControl2 using a standard property:
public uc:MyControl1 ExposedMyProperty1 {get{return MyProperty1}}
But I still can't access it form the uc:MyControl1 :
<uc:MyControl1 ExposedMyProperty1.Name="Milk">
<uc:MyControl2/>
</uc:MyControl2>
Intellisense shows only the properties of the UserControl, but not of my derived version of the UserControl. Meaning I see all the properties which comes from the UserControl, but don't see DP I have defined. So it looks like I am getting a UserControl instead of uc:MyControl1.
Am I missing something here?