I have several classes derived from a base class. VideoAsset, ImageAsset, etc. Lets say each has a different sort of header xaml.
I have two screens, one with a collectionview (that displays different xaml based on asset type) and one that shows details of that asset.
I have the collectionview working so it uses different xaml to display each asset type.
ItemTemplate="{StaticResource assetDataTemplateSelector}"
Easy. The issue is with the detail page. I did have a separate contentPage for each class (and when you clicked the collectionview it passed the asset to the relevant sort of contentpage) but now I think I should really have one ContentPage and display different bits of xaml depending on the class it is binding to (video header for video asset, etc). The header part of the page would reference a TemplateSelector as above but I don't see how that can be implemented.
Question is, how would I do this for a ContentPage (not a list/collectionview)? Declare all the bits in the pages Resourcedictionary? Is it TemplatedPage, DataTemplate or UserControl? No one else asking the same question on SO really gets a proper answer.
Edit: Added some more detail.