Posted on Jan 30, 2012 (permalink)
<
telerik:RadTabControl
x:Name
=
"tabBottomTabPanel"
Grid.Row
"2"
ItemsSource
"{Binding BottomTabs}"
SelectedItem
"{Binding SelectedBottomTab}"
>
</
private ObservableCollection<
RadTabItem
> _BottomTabs;
public ObservableCollection<
> BottomTabs
{
get { return _BottomTabs; }
set
if (_BottomTabs != value)
_BottomTabs = value;
RaisePropertyChanged("BottomTabs");
}
private RadTabItem _SelectedBottomTab = null;
public RadTabItem SelectedBottomTab
get { return _SelectedBottomTab; }
if (_SelectedBottomTab != value)
_SelectedBottomTab = value;
RaisePropertyChanged("SelectedBottomTab");
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<
>();
BottomTabs.Add(tabA);
BottomTabs.Add(tabB);
BottomTabs.Add(tabC);
Reply
Posted on Feb 2, 2012 (permalink)
The setter does not fire because you haven't set TwoWay Binding in XAML: SelectedItem="{Binding SelectedBottomTab, Mode=TwoWay}"
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top
[ WPF TabControl Features | Documentation | Demos | Telerik TV | Self-Paced Trainer ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below