Hi,
Have a look at the provided sample code ExtensionSample
And just replace
[code]viewManager.ViewsByRegionName["WorkspaceMenuRegion"].Insert(0,
new ViewActivator() { ViewType = typeof(IMySampleMenuView), ViewName = "MySampleMenu", ActivateView = true });
[/code]
[code]viewManager.ViewsByRegionName["ToolbarHamburgerButtonRegion"].Insert(0,
new ViewActivator() { ViewType = typeof(IMySampleMenuView), ViewName = "MySampleMenu", ActivateView = true });[/code]
Although the old 8.1 'WorkspaceMenuRegion' seems to work as well
[code] ///////////////////////
// GUI customization case 2
// Add a view in the workspace in the main tool bar
// Here we register the view (GUI) "IMySampleView" and its behavior counterpart "IMySamplePresentationModel"
container.RegisterType<IMyExtensionSampleView, MySampleView>();
container.RegisterType<IMyExtensionSampleViewModel, MySampleViewModel>();
// Put the MySample view in the region "ToolbarWorkplaceRegion" (The TabControl in the main toolbar)
viewManager.ViewsByRegionName["ToolbarWorkplaceRegion"].Insert(0,
new ViewActivator() { ViewType = typeof(IMyExtensionSampleView), ViewName = "MySample" });
// Here we register the view (GUI) "IMySampleMenuView"
container.RegisterType<IMySampleMenuView, MySampleMenuView>();
// Put the MySampleMenuView view in the region "ToolbarHamburgerButtonRegion" (The Workspace Hamburger Button)
viewManager.ViewsByRegionName["ToolbarHamburgerButtonRegion"].Insert(0,
new ViewActivator() { ViewType = typeof(IMySampleMenuView), ViewName = "MySampleMenu", ActivateView = true });[/code]