From bfd1b73be85fd66ee37031eadcd4d09e7dafb52f Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期四, 13 二月 2025 18:51:40 +0800 Subject: [PATCH] 开始增加构件分组功能 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/19-pump/05-state/02-edit/HydroPumpListStateEditCtrl.Designer.cs | 83 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 79 insertions(+), 4 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/19-pump/05-state/02-edit/HydroPumpListStateEditCtrl.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/19-pump/05-state/02-edit/HydroPumpListStateEditCtrl.Designer.cs index 662153d..ba6e69f 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/19-pump/05-state/02-edit/HydroPumpListStateEditCtrl.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/19-pump/05-state/02-edit/HydroPumpListStateEditCtrl.Designer.cs @@ -41,8 +41,19 @@ DevExpress.XtraEditors.TableLayout.TableRowDefinition tableRowDefinition1 = new DevExpress.XtraEditors.TableLayout.TableRowDefinition(); hydroPumpListItemStateViewModelBindingSource = new BindingSource(components); imageListBoxControl1 = new DevExpress.XtraEditors.ImageListBoxControl(); + layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + imageComboBoxEdit1 = new DevExpress.XtraEditors.ImageComboBoxEdit(); + Root = new DevExpress.XtraLayout.LayoutControlGroup(); + itemForList = new DevExpress.XtraLayout.LayoutControlItem(); + itemForGroup = new DevExpress.XtraLayout.LayoutControlItem(); ((ISupportInitialize)hydroPumpListItemStateViewModelBindingSource).BeginInit(); ((ISupportInitialize)imageListBoxControl1).BeginInit(); + ((ISupportInitialize)layoutControl1).BeginInit(); + layoutControl1.SuspendLayout(); + ((ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit(); + ((ISupportInitialize)Root).BeginInit(); + ((ISupportInitialize)itemForList).BeginInit(); + ((ISupportInitialize)itemForGroup).BeginInit(); SuspendLayout(); // // hydroPumpListItemStateViewModelBindingSource @@ -60,11 +71,11 @@ simpleContextButton1.ToolTip = "璁剧疆"; imageListBoxControl1.ContextButtons.Add(simpleContextButton1); imageListBoxControl1.DataSource = hydroPumpListItemStateViewModelBindingSource; - imageListBoxControl1.Dock = DockStyle.Fill; imageListBoxControl1.ItemHeight = 34; - imageListBoxControl1.Location = new Point(0, 0); + imageListBoxControl1.Location = new Point(0, 21); imageListBoxControl1.Name = "imageListBoxControl1"; - imageListBoxControl1.Size = new Size(261, 673); + imageListBoxControl1.Size = new Size(261, 652); + imageListBoxControl1.StyleController = layoutControl1; imageListBoxControl1.TabIndex = 0; tableColumnDefinition1.Length.Type = DevExpress.XtraEditors.TableLayout.TableDefinitionLengthType.Pixel; tableColumnDefinition1.Length.Value = 40D; @@ -102,20 +113,84 @@ imageListBoxControl1.SelectedValueChanged += imageListBoxControl1_SelectedValueChanged; imageListBoxControl1.ContextButtonClick += imageListBoxControl1_ContextButtonClick; // + // layoutControl1 + // + layoutControl1.Controls.Add(imageComboBoxEdit1); + layoutControl1.Controls.Add(imageListBoxControl1); + layoutControl1.Dock = DockStyle.Fill; + layoutControl1.Location = new Point(0, 0); + layoutControl1.Name = "layoutControl1"; + layoutControl1.Root = Root; + layoutControl1.Size = new Size(261, 673); + layoutControl1.TabIndex = 1; + layoutControl1.Text = "layoutControl1"; + // + // imageComboBoxEdit1 + // + imageComboBoxEdit1.Location = new Point(0, 0); + imageComboBoxEdit1.Name = "imageComboBoxEdit1"; + imageComboBoxEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); + imageComboBoxEdit1.Size = new Size(261, 20); + imageComboBoxEdit1.StyleController = layoutControl1; + imageComboBoxEdit1.TabIndex = 4; + imageComboBoxEdit1.SelectedValueChanged += imageComboBoxEdit1_SelectedValueChanged; + // + // Root + // + Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + Root.GroupBordersVisible = false; + Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { itemForList, itemForGroup }); + Root.Name = "Root"; + Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); + Root.Size = new Size(261, 673); + Root.TextVisible = false; + // + // itemForList + // + itemForList.Control = imageListBoxControl1; + itemForList.Location = new Point(0, 21); + itemForList.Name = "itemForList"; + itemForList.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); + itemForList.Size = new Size(261, 652); + itemForList.TextSize = new Size(0, 0); + itemForList.TextVisible = false; + // + // itemForGroup + // + itemForGroup.Control = imageComboBoxEdit1; + itemForGroup.Location = new Point(0, 0); + itemForGroup.Name = "itemForGroup"; + itemForGroup.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 1); + itemForGroup.Size = new Size(261, 21); + itemForGroup.Text = "鍒嗙粍:"; + itemForGroup.TextSize = new Size(0, 0); + itemForGroup.TextVisible = false; + // // HydroPumpListStateEditCtrl // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; - Controls.Add(imageListBoxControl1); + Controls.Add(layoutControl1); Name = "HydroPumpListStateEditCtrl"; Size = new Size(261, 673); ((ISupportInitialize)hydroPumpListItemStateViewModelBindingSource).EndInit(); ((ISupportInitialize)imageListBoxControl1).EndInit(); + ((ISupportInitialize)layoutControl1).EndInit(); + layoutControl1.ResumeLayout(false); + ((ISupportInitialize)imageComboBoxEdit1.Properties).EndInit(); + ((ISupportInitialize)Root).EndInit(); + ((ISupportInitialize)itemForList).EndInit(); + ((ISupportInitialize)itemForGroup).EndInit(); ResumeLayout(false); } #endregion private BindingSource hydroPumpListItemStateViewModelBindingSource; private DevExpress.XtraEditors.ImageListBoxControl imageListBoxControl1; + private DevExpress.XtraLayout.LayoutControl layoutControl1; + private DevExpress.XtraEditors.ImageComboBoxEdit imageComboBoxEdit1; + private DevExpress.XtraLayout.LayoutControlGroup Root; + private DevExpress.XtraLayout.LayoutControlItem itemForList; + private DevExpress.XtraLayout.LayoutControlItem itemForGroup; } } -- Gitblit v1.9.3