I binding ItemsSource of TabControl, when I added new TabItem, It is visible but not selected. I want to change SelectedIndex of TabControl but I dont know how I can get this index from recently created TabItem.
Please help.
I binding ItemsSource of TabControl, when I added new TabItem, It is visible but
Share
Try doing this, assuming
tabControlis the control id.SelectedIndexis public (Get and Set) property ofTabControl. Read more on MSDN.You can read more about data bidning @
Hope this works out.