Esempio n. 1
0
        public void CloseTab(IOTabItem item)
        {
            var tab = tabs[item.TabPanelID];

            item.AfterClose();
            tab.Items.Remove(item);
        }
Esempio n. 2
0
        public IOMenuItem CreatePanelMenuItem(object header, IOTabItem tabItem)
        {
            IOMenuItem item = new IOMenuItem();

            item.Header  = header;
            item.Command = new RelayCommand(() => showItem(item, tabItem));
            PanelMenu.Items.Add(item);
            return(item);
        }
Esempio n. 3
0
        private void showItem(IOMenuItem item, IOTabItem tabItem)
        {
            tabItem.Visibility = Visibility.Visible;
            var content = tabItem.Content as UIElement;

            content.Visibility = Visibility.Visible;
            var control = tabItem.Parent as IOTabControl;

            control.SelectedItem = tabItem;

            PanelMenu.Items.Remove(item);
        }