Exemplo n.º 1
0
        public override void Execute(IMenuItemContext context)
        {
            var tab = documentTabService.GetOrCreateActiveTab();

            tab.Show(new AboutScreenDocumentTabContent(documentViewerContentFactoryProvider, appWindow, extensionService, aboutContentType), null, null);
            documentTabService.SetFocus(tab);
        }
Exemplo n.º 2
0
 public void Activate(TabVM vm)
 {
     if (vm == null)
     {
         return;
     }
     LastActivated = vm;
     documentTabService.SetFocus(vm.Tab);
 }
Exemplo n.º 3
0
        internal static void OpenNewTabInternal(IDocumentTabService documentTabService, bool clone = true)
        {
            var activeTab = documentTabService.ActiveTab;

            if (activeTab == null)
            {
                return;
            }
            var newTab = documentTabService.OpenEmptyTab();

            if (clone)
            {
                newTab.Show(activeTab.Content.Clone(), activeTab.UIContext.Serialize(), null);
                documentTabService.SetFocus(newTab);
            }
        }