Hello
I would create my own RadComboBox (for adding features) and add a button at right (see capture)
I create a control inherit of RadComboBox :
And associate style :
But MyComboBoxStyle is never use, I think RadComboBox always override my style because if I inherit System.Windows.ComboBox it's work.
Can you help me ? Or I must create UserControl and rewrite all DependencyProperty of RadComboBox ?
Thanks in advance
PS : I use Telerik 2014 Q2.
I would create my own RadComboBox (for adding features) and add a button at right (see capture)
I create a control inherit of RadComboBox :
public class MyComboBox : Telerik.Windows.Controls.RadComboBox{}<Style x:Key="MyComboBoxStyle" TargetType="Controls:MyComboBox"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Controls:MyComboBox" > <Grid x:Name="LayoutRoot"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <telerik:RadComboBox x:Name="PART_RadComboBox" Grid.Column="0" ItemsSource="{TemplateBinding ItemsSource}" SelectedItem="{TemplateBinding SelectedItem}" SelectedValue="{TemplateBinding SelectedValue}" DisplayMemberPath="{TemplateBinding DisplayMemberPath}" SelectedValuePath="{TemplateBinding SelectedValuePath}"> </telerik:RadComboBox> <telerik:RadButton x:Name="PART_RadButton" Grid.Column="1" Content="+"/> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style>Can you help me ? Or I must create UserControl and rewrite all DependencyProperty of RadComboBox ?
Thanks in advance
PS : I use Telerik 2014 Q2.