I am trying to bind a collection of workspaces to the RadTabControl and use a DataTemplateSelector to choose the DataTemplate for the content based on which type of workspace is being rendered but the RadTabItem does not appear to use the DataTemplateSelector that I set. Here is an example of my code:
I put a breakpoint in the SelectTemplate method but it never reaches it.
Has anyone got this to work?
<telerik:RadTabControl ItemsSource="{Binding Workspaces}"> |
<telerik:RadTabControl.Resources> |
<Style TargetType="{x:Type telerik:RadTabItem}"> |
<Setter Property="ContentTemplateSelector"> |
<Setter.Value> |
<local:TabItemContentTemplateSelector /> |
</Setter.Value> |
</Setter> |
</Style> |
</telerik:RadTabControl.Resources> |
</telerik:RadTabControl> |
I put a breakpoint in the SelectTemplate method but it never reaches it.
Has anyone got this to work?