I have a UserControl defined in MyUserControl.xaml. If I reference this directly from another control, then it displays correctly. For example:
<Grid>
<MyUserControl/>
<Grid>
works as expected. But if I try to use the UserControl in a DataTemplate it doesn't work. For example, if I have a DataTemplate like
<DataTemplate>
<MyUserControl/>
<DataTemplate>
nothing gets rendered.
What's up?