I am populating a RadTabControl in the code-behind, and it's bound to a property called SelectedBottomTab.
Here's the XAML
then in the code behin I create the tabs:
and
When change tabs the SelectedBottomTab property set it not firing.
Here's the XAML
<
telerik:RadTabControl
x:Name
=
"tabBottomTabPanel"
Grid.Row
=
"2"
ItemsSource
=
"{Binding BottomTabs}"
SelectedItem
=
"{Binding SelectedBottomTab}"
>
</
telerik:RadTabControl
>
then in the code behin I create the tabs:
private ObservableCollection<
RadTabItem
> _BottomTabs;
public ObservableCollection<
RadTabItem
> BottomTabs
{
get { return _BottomTabs; }
set
{
if (_BottomTabs != value)
{
_BottomTabs = value;
RaisePropertyChanged("BottomTabs");
}
}
}
private RadTabItem _SelectedBottomTab = null;
public RadTabItem SelectedBottomTab
{
get { return _SelectedBottomTab; }
set
{
if (_SelectedBottomTab != value)
{
_SelectedBottomTab = value;
RaisePropertyChanged("SelectedBottomTab");
}
}
}
and
private void setupBottomTabs()
{
RadTabItem tabA = new RadTabItem { Header = "Tab A" };
RadTabItem tabB = new RadTabItem { Header = "Tab B" };
RadTabItem tabC = new RadTabItem { Header = "Tab C" };
BottomTabs = new ObservableCollection<
RadTabItem
>();
BottomTabs.Add(tabA);
BottomTabs.Add(tabB);
BottomTabs.Add(tabC);
}
When change tabs the SelectedBottomTab property set it not firing.