I'm using a XamTabControl in with an ItemsSource that uses a CompositeCollection. Based on the type of item for the tab, I want to use a different DataTemplate for the content. So I created a ContentTemplateSelector.
My problem is the ContentTemplateSelector never gets called. If I change from a XamTabControl to a base TabControl - selector gets called just fine. I think this is a bug, but if anyone has a workaround that would be great.
Thanks.
I have same problem with XamTabControl
It does not work
<igWindows:XamTabControl ItemsSource="{Binding Items}" ContentTemplateSelector="{StaticResource TemplateSelector}" />
This is works fine
<TabControl ItemsSource="{Binding Items}" ContentTemplateSelector="{StaticResource TemplateSelector}"/>
Hello,
I put together a sample to test the ContentTemplateSelector and in my sample it works when using the XamTabControl. Please take a look at my sample to see if I am doing something different or if my sample reproduces the issue in your environment.
Let me know if you have any questions with this matter.