Thanks for your response. I am probably a bit confused as how to reference the specific control to cause it to load its data. This is what I have:
if (e.Visibility == Visibility.Visible)
ProductCardView theCard = e.DetailsElement.FindName("cardView") as ProductCardView;
<views:ProductCardView x:Name="cardView" />
Where ProductCardView is a simple user control whos LoadData method takes a product id to load its data with.
Basically FindNAme always returns null
Note, if I replace my ProductCardView class with a standard control like a button, I can find that control. ProductCardView ultimately inherits from UserControl, I have another class which inherits from ContentControl and it finds that. If I create default UserControl and try to find that, no joy.
What are the prerequsities for user controls to be located in this manner?
I don't know if it helps but I also noticed that e.Row.DetailsTemplate is null when stepping through RowDetailsVisibilityChanged
What am I doing wrong?