This is a migrated thread and some comments may be shown as answers.

Bind Selected TabItem

0 Answers 94 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
gerardo
Top achievements
Rank 1
Veteran
gerardo asked on 29 Nov 2020, 05:39 AM

 

I have a RadTabControl with multiple RadTabItems. these items are coded on my xaml as each items have different source/layout. I can't use ItemsSource.

Now I want to bind the selected TabItem on a property in my ViewModel. I want to use the SelectedItem but I don't know how I can relate this to the each TabItems.

 

Sample: Please not that each RadTabItem are coded on my xaml and not via template.

<telerik:RadTabControl x:Name="_TestControl" SelectedItem ="{Bind}">

<telerik:RadTabItem Header="ITEM 1">

</telerik:RadTabItem>

<telerik:RadTabItem Header="ITEM 2">
</telerik:RadTabItem>

</telerik:RadTabControl>

No answers yet. Maybe you can help?

Tags
TabControl
Asked by
gerardo
Top achievements
Rank 1
Veteran
Share this question
or