This question is locked. New answers and comments are not allowed.
Looks like there's a bug in 2009.2.812.1030 build.
It raises SelectionChanged event for tab control if selection changed in child tab control.
Click "Tab 1.1" -> "Tab 1.2" it still raises SelectionChanged for the parent tab control.
Any thoughts ?
It raises SelectionChanged event for tab control if selection changed in child tab control.
| <UserControl |
| x:Class="TestSilverlightApplication.Page" |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:radInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" |
| > |
| <Grid Background="White"> |
| <Grid.RowDefinitions> |
| <RowDefinition Height="Auto" /> |
| <RowDefinition Height="*" /> |
| </Grid.RowDefinitions> |
| <radInput:RadTabControl Grid.Row="0" Name="tabControl"> |
| <radInput:RadTabItem Header="Tab 1"> |
| <radInput:RadTabControl> |
| <radInput:RadTabItem Header="Tab 1.1" /> |
| <radInput:RadTabItem Header="Tab 1.2" /> |
| </radInput:RadTabControl> |
| </radInput:RadTabItem> |
| <radInput:RadTabItem Header="Tab 2"> |
| <radInput:RadTabControl> |
| <radInput:RadTabItem Header="Tab 2.1" /> |
| <radInput:RadTabItem Header="Tab 2.2" /> |
| </radInput:RadTabControl> |
| </radInput:RadTabItem> |
| </radInput:RadTabControl> |
| <TextBox Grid.Row="1" Name="logTextBox" AcceptsReturn="True" /> |
| </Grid> |
| </UserControl> |
| using System; |
| using System.Windows; |
| namespace TestSilverlightApplication |
| { |
| public partial class Page |
| { |
| public Page() |
| { |
| InitializeComponent(); |
| tabControl.SelectionChanged += tabControl_SelectionChanged; |
| } |
| private void tabControl_SelectionChanged(object sender, RoutedEventArgs e) |
| { |
| logTextBox.Text += "SelectionChanged" + Environment.NewLine; |
| } |
| } |
| } |
Click "Tab 1.1" -> "Tab 1.2" it still raises SelectionChanged for the parent tab control.
Any thoughts ?