or
<telerik:GridViewComboBoxColumn.Resources> <Style TargetType="Controls:RadComboBox"> <Setter Property="ClearSelectionButtonVisibility" Value="Visible" /> <Setter Property="ClearSelectionButtonContent" Value="Test" /> </Style></telerik:GridViewComboBoxColumn.Resources><ResourceDictionary> <DataTemplate x:Key="TickTemplate"> <Grid> <TextBlock Text="{Binding}" /> </Grid> </DataTemplate></ResourceDictionary> <telerik:RadSlider x:Name="normalSlider" VerticalAlignment="Center" Maximum="9" Minimum="1" Value="5" TickTemplate="{StaticResource TickTemplate}" Margin="20 0" TickPlacement="TopLeft" />
<Window ... > <Window.Resources> <local:TemplateSelector x:Key="templateSelector"> <local:TemplateSelector.TemplateA> <DataTemplate> <rad:RadPropertyGrid AutoGeneratePropertyDefinitions="False" Item="{Binding }"> <rad:RadPropertyGrid.PropertyDefinitions> <rad:PropertyDefinition DisplayName="The only property displayed" /> </rad:RadPropertyGrid.PropertyDefinitions> </rad:RadPropertyGrid> </DataTemplate> </local:TemplateSelector.TemplateA> </local:TemplateSelector> </Window.Resources> <Grid> <ContentPresenter ContentTemplateSelector="{StaticResource templateSelector}" Content="{Binding }" /> </Grid> </Window>