Reputation:
Hi I have two questions.
Upvotes: 13
Views: 30666
Reputation: 178630
SelectedIndex
or SelectedItem
or by changing the value of the property to which those properties are boundSelectedIndex
, you don't need a reference to the tab. If you're using SelectedItem
, you need a reference to the data item for that tab - not the tab itself. If you've bound one of those properties to another property, you change that property rather than changing the property on the TabControl
.Upvotes: 28