Hi,
in my mainwindow i have a radtabcontrol and i bind it to a collection of tabitems. Further i have datatemplates for each view (user control) and a datatemplateselector. Everything works without problems but once i set the IsContentPreserved property to true i get
System.Windows.Data Error: 25 : Both 'ContentTemplate' and 'ContentTemplateSelector' are set; 'ContentTemplateSelector' will be ignored. ContentPresenter:'ContentPresenter' (Name='')
here is my xaml:
<telerik:RadWindow.Resources> <DataTemplate x:Key="ContentTemplateApplicationSettings"> <local:ApplicationSettings/> </DataTemplate> <DataTemplate x:Key="ContentTemplateConversionRules"> <local:ConversionRules/> </DataTemplate> <DataTemplate x:Key="ContentTemplateProductionOrderConversion"> <local:ProductionOrderConversion/> </DataTemplate> <localutil:MainMenuContentTemplateSelector x:Key="MainMenutemplateSelector" ApplicationSettingsTemplate="{StaticResource ContentTemplateApplicationSettings}" ConversionRulesTemplate="{StaticResource ContentTemplateConversionRules}" ProductionOrderConversionTemplate="{StaticResource ContentTemplateProductionOrderConversion}"/> </telerik:RadWindow.Resources> <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <telerik:RadTabControl x:Name="MainMenuTabControl" IsContentPreserved="True" ItemsSource="{Binding MainMenuTabItems}" ContentTemplateSelector="{StaticResource MainMenutemplateSelector}"> <telerik:RadTabControl.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Header}" /> </DataTemplate> </telerik:RadTabControl.ItemTemplate> </telerik:RadTabControl> <StatusBar Grid.Row="1" Background="{StaticResource HeaderAndStatusBackground}"> <StatusBarItem> <TextBlock Text="{Binding StatusText}" Foreground="White"/> </StatusBarItem> </StatusBar> </Grid>What is the reason for this error?
thanks,
michael
