Hi,
I am using Telerik "RadDocking" control in our WPF project. I customized the "TitleTemplate" of one RadPane inside using the following DataTemplate. It basically added a RadComboBox and a RadButton besides the title. Now, whenever I pin/unpin the group pane by clicking that "Pin" button, the "SelectionChanged" event in that RadComboBox also gets fired, which is not expected since the selection is not changed in the combobox. Can you explain why this happened? Is this a bug in the control? Thanks, Jie
<
DataTemplate x:Key="WellTreeTitleTemplate">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ContentPresenter Grid.Column="0" Content="{Binding}" VerticalAlignment="Center" />
<tk:RadComboBox Grid.Column="1" Margin="5,4,2,4" HorizontalAlignment="Stretch"
DisplayMemberPath="Name" IsEditable="True" IsReadOnly="True"
ItemsSource="{Binding Path=DataContext.Trees, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
SelectedItem="{Binding Path=DataContext.SelectedTree, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}, Mode=TwoWay}"
SelectionChanged="treeComboBox_SelectionChanged" />
<tk:RadButton Grid.Column="2" ToolTip="Tree Setup" IsBackgroundVisible="False"
Margin="0,1,5,1" Width="22" Height="22" Click="treeSetupButton_Click">
<Image Source="{DynamicResource ImageWellTreeConfig24}" />
</tk:RadButton>
</Grid>
</DataTemplate>