From d07b7956552c6a7af99d6db6f39af5a638612d21 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Mon, 23 Mar 2020 01:33:59 -0400 Subject: [PATCH] use SplitContainer instead of a regular box layout --- .../Dialogs/NewDialog.Designer.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs index f09a60ba..a75bd446 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/NewDialog.Designer.cs @@ -71,11 +71,13 @@ namespace UniversalEditor.UserInterface.Dialogs tvTemplate.HeaderStyle = ColumnHeaderStyle.None; tvTemplate.SelectionChanged += tvTemplate_SelectionChanged; - Container boxTreeViewAndListView = new Container(); - boxTreeViewAndListView.Layout = new BoxLayout(Orientation.Horizontal); + SplitContainer boxTreeViewAndListView = new SplitContainer(); + boxTreeViewAndListView.Orientation = Orientation.Vertical; + boxTreeViewAndListView.Panel1.Layout = new BoxLayout(Orientation.Horizontal); + boxTreeViewAndListView.Panel2.Layout = new BoxLayout(Orientation.Horizontal); - boxTreeViewAndListView.Controls.Add(tvObjectModel, new BoxLayout.Constraints(true, true, 16)); - boxTreeViewAndListView.Controls.Add(tvTemplate, new BoxLayout.Constraints(true, true, 16, BoxLayout.PackType.End)); + boxTreeViewAndListView.Panel1.Controls.Add(tvObjectModel, new BoxLayout.Constraints(true, true, 16)); + boxTreeViewAndListView.Panel2.Controls.Add(tvTemplate, new BoxLayout.Constraints(true, true, 16, BoxLayout.PackType.End)); this.Controls.Add(boxTreeViewAndListView, new BoxLayout.Constraints(true, true, 16));