MainWindow.ActivateTab

Activates a tab by checking from a filename and activating or optionally open the a new tab.

public Task<TabItem> ActivateTab(string filename, bool openIfNotFound, 
			bool maintainScrollPosition, bool noPreview, 
			bool noSelectTab, bool noFocus, 
			bool readOnly, bool isPreview)