I'm binding a ObservableCollection<UIElement> named Docs to my DocumentContainer's ItemsSource property in my viewmodel. When I add new docs it worked fine, new tabs get created, except that, new tabs are added to the background, and I want to bring the newly created tab to the foreground.
So far, I tried :
1. to set the ActiveDocument property
2. DocuemntContainer.SelectItem(newItem)
but none of these works for me.
So I'm asking for your help, how can I bring newly created tab to the forground?