Пример #1
0
        void PlaceInHoverNotebook(DockNotebook notebook, DockNotebookTab tab, Rectangle allocation, int ox, int oy)
        {
            var window = (SdiWorkspaceWindow)tab.Content;
            var newTab = hoverNotebook.AddTab(window);

            window.SetDockNotebook(hoverNotebook, newTab);
            window.SelectWindow();
        }
Пример #2
0
        DockNotebook Insert(SdiWorkspaceWindow window, Action <DockNotebookContainer> callback)
        {
            var newNotebook = new DockNotebook();

            newNotebook.NavigationButtonsVisible = false;
            newNotebook.InitSize();
            var newContainer = new DockNotebookContainer(newNotebook);

            newNotebook.PageRemoved += HandlePageRemoved;

            if (window != null)
            {
                var newTab = newNotebook.AddTab(window);
                window.SetDockNotebook(newNotebook, newTab);
            }
            Remove(Child);

            callback(newContainer);

            tabControl.InitSize();
            ShowAll();
            return(newNotebook);
        }
Пример #3
0
		DockNotebook Insert (SdiWorkspaceWindow window, Action<DockNotebookContainer> callback)
		{
			var newNotebook = new DockNotebook ();

			newNotebook.NavigationButtonsVisible = false;
			newNotebook.InitSize ();
			var newContainer = new DockNotebookContainer (newNotebook);
			newNotebook.PageRemoved += HandlePageRemoved;

			if (window != null) {
				var newTab = newNotebook.AddTab (window);
				window.SetDockNotebook (newNotebook, newTab);
			}
			Remove (Child);

			callback (newContainer);

			tabControl.InitSize ();
			ShowAll ();
			return newNotebook;
		}