0

I'm using MVVM pattern and C#, I public a ReadOnlyCollection property from View-Model, In View, there is a TabControl that ItemsSource property is Binding to this ReadOnlyCollection Property. How can I know which item is being selected from View-Model? If ReadOnlyCollection cannot do this, what type should i use? Thank you.

1 Answers1

0

You can bind to the SelectedItem property of the TabControl to an additional property in your ViewModel.

Check MSDN for all the properties of TabControl.