How do I activate a view's tab?

Nov 3, 2009 at 10:30 PM

How can I programmatically activate a view's tab?

Code similar to the below works for other CAL region managers, but does not work for XamDock

IRegion region = regionManager.Regions[RegionNames.MainRegion]; 
object view = region.GetView("MyView"); 

Any suggestions?

Sep 17, 2010 at 6:26 PM

I know this is a long time from your original post, but I discovered switching to the tab is accomplished by changing focus to an item in that view.


So after region.activate I've been adding something like:


That code sets the appropriate focus. This is filtering though my view model but it works pretty well.