Skip to content

Instantly share code, notes, and snippets.

@jarshwah
Created June 9, 2016 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarshwah/18dd6e9cf5b946e9942eb930f1ac3a46 to your computer and use it in GitHub Desktop.
Save jarshwah/18dd6e9cf5b946e9942eb930f1ac3a46 to your computer and use it in GitHub Desktop.
Register a top level tab in workspace
if (options.SingleInstance) // hosted within the main window
{
container.RegisterType<ICRMViewModel, CRMViewModelSingleInstance>(Singleton);
viewManager.ViewsByRegionName["ToolbarWorkplaceRegion"].Add(
new ViewActivator { ViewType = typeof(ICRMView), ViewName = "CRMView", ActivateView = true });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment