I have a TabControl that has tab bound to a List:
<TabControl ItemsSource="{Binding SomeList}" />
How can find the instances of TabItem? I found other answers that suggest looking at the TabControl.Items list but that is full of Foos. Any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That question gets asked pretty often and the answer always is: Don’t do it.
In theory you should not need the
TabIteminstance because you should bind everything you need to modify. (Also in theory you could get the instance using theItemContainerGenerator)