public void AddTool(IDock layout, AvaloniaToolDockWrapper toolWrapper, ToolPreferedPosition position)
        {
            var toolDock = FindDockable(layout, dockable => dockable is ToolDock) as ToolDock;

            if (position == ToolPreferedPosition.Left)
            {
                toolDock = null;
            }
            if (toolDock == null)
            {
                toolDock = new ToolDock
                {
                    Id         = "tool",
                    Title      = "Tools",
                    Proportion = 0.2f,
                    CanFloat   = false
                };
                if (position == ToolPreferedPosition.Left)
                {
                    InsertDockable(layout, CreateProportionalDockSplitter(), 0);
                    InsertDockable(layout, toolDock, 0);
                }
                else
                {
                    AddDockable(layout, CreateProportionalDockSplitter());
                    AddDockable(layout, toolDock);
                }
            }

            AddDockable(toolDock, toolWrapper);
        }
        public void AddToolAsDocument(IDock layout, AvaloniaToolDockWrapper tool)
        {
            var documentsDock = FindDockable(layout, dockable => dockable is IDocumentDock) as IDocumentDock;

            if (documentsDock == null)
            {
                documentsDock            = CreateDocumentDock();
                documentsDock.Proportion = 1;
                AddDockable(layout, documentsDock);
            }
            AddDockable(documentsDock, tool);
        }
        public void AddTool(IDock layout, AvaloniaToolDockWrapper toolWrapper)
        {
            var toolDock = FindDockable(layout, dockable => dockable is ToolDock) as ToolDock;

            if (toolDock == null)
            {
                toolDock = new ToolDock
                {
                    Id         = "tool",
                    Title      = "Tools",
                    Proportion = 0.2f,
                };
                AddDockable(layout, CreateSplitterDockable());
                AddDockable(layout, toolDock);
            }

            AddDockable(toolDock, toolWrapper);
        }