I have a converter in my Xaml that pays attention to both a security option embedded as a parameter in the converter call in Xaml and a binding to a visiblilty property on my viewmodel class. I can make the tab and the control in the tab visibility=collapsed based on this, but if I do it programatically and am on the tab that is to be hidden, I get just a collapsed tab window and the tab header is removed. I can then click on other tabs and get to them properly, but is there a way to cause the current tab to be changed automatically to the next or prior tab in the collection when its visibility is changed to collapsed?
We are trying not to use codebehind, as we are injecting all our views and want to be able to override the xaml if needed. We are also going to the Prism framework.
Now it is not a simple case of programatically deciding the next item in an array of tabs using different views/viewmodels (in this case, the tabs are all dealing with the same base item, just different details that are all part of the primary class), as the security option is invoked from the Xaml side of things and may have taken the tab out of the display and the viewmodel will not know that.
Brian