private void NewDockPane(PaintualUI.Controls.DrawingBoard db, string title) { DockPane pane = new DockPane(); pane.MinHeight = 100; pane.MinWidth = 100; pane.Header = title; Grid g = new Grid(); g.Background = Brushes.White; g.Children.Add(db); pane.Content = g; WindowsManager.AddDocument(pane); }