use SplitContainer instead of a regular box layout

This commit is contained in:
Michael Becker 2020-03-23 01:33:59 -04:00
parent 9e7e7b6176
commit d07b795655
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -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));