Hi there,
I have a dynamic collection which I bind to the tab control, however, I would also like to be able to enable / disable the tabs based on some criteria, however, I am unsure of what to bind to so I Can disable tabbing to the control.
I followed your basic demo for binding to a collection please see code below
<Grid>
<Grid.DataContext>
<WpfApplication3:MainWindowViewModel/>
</Grid.DataContext>
<telerik:RadTabControl ItemsSource="{Binding People}" >
<telerik:RadTabControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</telerik:RadTabControl.ItemTemplate>
<telerik:RadTabControl.ContentTemplate>
<DataTemplate>
<TextBlock Text="{Binding Age}"/>
</DataTemplate>
</telerik:RadTabControl.ContentTemplate>
</telerik:RadTabControl>
</Grid>
Thanks
I have a dynamic collection which I bind to the tab control, however, I would also like to be able to enable / disable the tabs based on some criteria, however, I am unsure of what to bind to so I Can disable tabbing to the control.
I followed your basic demo for binding to a collection please see code below
<Grid>
<Grid.DataContext>
<WpfApplication3:MainWindowViewModel/>
</Grid.DataContext>
<telerik:RadTabControl ItemsSource="{Binding People}" >
<telerik:RadTabControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}"/>
</DataTemplate>
</telerik:RadTabControl.ItemTemplate>
<telerik:RadTabControl.ContentTemplate>
<DataTemplate>
<TextBlock Text="{Binding Age}"/>
</DataTemplate>
</telerik:RadTabControl.ContentTemplate>
</telerik:RadTabControl>
</Grid>
Thanks