Hello
I have a ControlTemplate where I want to bind the datacontent.
Now it doesn't work properly but if I use only the control like below it work properly:
<telerik:RadComboBox ItemsSource="{Binding ListCombo, Mode=OneWay}"
Text="{Binding Filter.SelectedText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEditable="True"
IsSynchronizedWithCurrentItem="True" IsFilteringEnabled="True" Margin="0,0,0,81" />
What can I do to use it into a controltemplate?
Thanks in advance,
I have a ControlTemplate where I want to bind the datacontent.
<Button Content="Button" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75"> <Button.Template> <ControlTemplate> <StackPanel> <telerik:RadComboBox ItemsSource="{Binding ListCombo, Mode=OneWay}" Text="{Binding Filter.SelectedText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEditable="True" IsSynchronizedWithCurrentItem="True" IsFilteringEnabled="True" Margin="0,0,0,81" /> </StackPanel> </ControlTemplate> </Button.Template> </Button>
Now it doesn't work properly but if I use only the control like below it work properly:
<telerik:RadComboBox ItemsSource="{Binding ListCombo, Mode=OneWay}"
Text="{Binding Filter.SelectedText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEditable="True"
IsSynchronizedWithCurrentItem="True" IsFilteringEnabled="True" Margin="0,0,0,81" />
What can I do to use it into a controltemplate?
Thanks in advance,