diff --git a/AntdUIDemo.csproj b/AntdUIDemo.csproj
index 94f6a5c..75a3834 100644
--- a/AntdUIDemo.csproj
+++ b/AntdUIDemo.csproj
@@ -13,7 +13,7 @@
Copyright © 2024 czz_y
$(Version)
$(Version)
- 1.6.6
+ 1.6.8
czz_y
基于 Winform UI框架 AntdUI 设计的Demo
https://gitee.com/mubaiyanghua/antd-uidemo
@@ -30,7 +30,7 @@
-
+
diff --git a/README.md b/README.md
index 9b6b5b2..dd08566 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
AntdUI Demo
-本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.6.6`
+本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.6.8`
diff --git a/Views/ProgressDemo.Designer.cs b/Views/ProgressDemo.Designer.cs
index 086868c..2bc2787 100644
--- a/Views/ProgressDemo.Designer.cs
+++ b/Views/ProgressDemo.Designer.cs
@@ -29,6 +29,13 @@
private void InitializeComponent()
{
this.stackPanel1 = new AntdUI.StackPanel();
+ this.progress18 = new AntdUI.Progress();
+ this.progress17 = new AntdUI.Progress();
+ this.progress16 = new AntdUI.Progress();
+ this.progress15 = new AntdUI.Progress();
+ this.progress14 = new AntdUI.Progress();
+ this.progress12 = new AntdUI.Progress();
+ this.label7 = new AntdUI.Label();
this.progress13 = new AntdUI.Progress();
this.label6 = new AntdUI.Label();
this.flowPanel1 = new AntdUI.FlowPanel();
@@ -50,13 +57,7 @@
this.divider1 = new AntdUI.Divider();
this.label2 = new AntdUI.Label();
this.label1 = new AntdUI.Label();
- this.label7 = new AntdUI.Label();
- this.progress12 = new AntdUI.Progress();
- this.progress14 = new AntdUI.Progress();
- this.progress15 = new AntdUI.Progress();
- this.progress16 = new AntdUI.Progress();
- this.progress17 = new AntdUI.Progress();
- this.progress18 = new AntdUI.Progress();
+ this.progress19 = new AntdUI.Progress();
this.stackPanel1.SuspendLayout();
this.flowPanel1.SuspendLayout();
this.flowPanel4.SuspendLayout();
@@ -64,6 +65,7 @@
//
// stackPanel1
//
+ this.stackPanel1.Controls.Add(this.progress19);
this.stackPanel1.Controls.Add(this.progress18);
this.stackPanel1.Controls.Add(this.progress17);
this.stackPanel1.Controls.Add(this.progress16);
@@ -89,11 +91,99 @@
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.stackPanel1.Location = new System.Drawing.Point(0, 0);
this.stackPanel1.Name = "stackPanel1";
- this.stackPanel1.Size = new System.Drawing.Size(700, 715);
+ this.stackPanel1.Size = new System.Drawing.Size(700, 741);
this.stackPanel1.TabIndex = 0;
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
//
+ // progress18
+ //
+ this.progress18.Location = new System.Drawing.Point(3, 674);
+ this.progress18.Name = "progress18";
+ this.progress18.Shape = AntdUI.TShapeProgress.Steps;
+ this.progress18.Size = new System.Drawing.Size(694, 23);
+ this.progress18.State = AntdUI.TType.Warn;
+ this.progress18.StepGap = 5;
+ this.progress18.Steps = 50;
+ this.progress18.StepSize = 2;
+ this.progress18.TabIndex = 65;
+ this.progress18.Text = "progress18";
+ this.progress18.Value = 0.3F;
+ //
+ // progress17
+ //
+ this.progress17.Location = new System.Drawing.Point(3, 645);
+ this.progress17.Name = "progress17";
+ this.progress17.Shape = AntdUI.TShapeProgress.Steps;
+ this.progress17.Size = new System.Drawing.Size(694, 23);
+ this.progress17.StepGap = 8;
+ this.progress17.Steps = 20;
+ this.progress17.StepSize = 10;
+ this.progress17.TabIndex = 64;
+ this.progress17.Text = "progress17";
+ this.progress17.Value = 0.3F;
+ //
+ // progress16
+ //
+ this.progress16.Location = new System.Drawing.Point(3, 616);
+ this.progress16.Name = "progress16";
+ this.progress16.Shape = AntdUI.TShapeProgress.Steps;
+ this.progress16.Size = new System.Drawing.Size(694, 23);
+ this.progress16.State = AntdUI.TType.Success;
+ this.progress16.Steps = 50;
+ this.progress16.StepSize = 2;
+ this.progress16.TabIndex = 63;
+ this.progress16.Text = "progress16";
+ this.progress16.Value = 1F;
+ //
+ // progress15
+ //
+ this.progress15.Location = new System.Drawing.Point(3, 587);
+ this.progress15.Name = "progress15";
+ this.progress15.Shape = AntdUI.TShapeProgress.Steps;
+ this.progress15.Size = new System.Drawing.Size(694, 23);
+ this.progress15.State = AntdUI.TType.Error;
+ this.progress15.Steps = 50;
+ this.progress15.StepSize = 5;
+ this.progress15.TabIndex = 62;
+ this.progress15.Text = "progress15";
+ this.progress15.Value = 0.7F;
+ //
+ // progress14
+ //
+ this.progress14.Location = new System.Drawing.Point(3, 558);
+ this.progress14.Name = "progress14";
+ this.progress14.Shape = AntdUI.TShapeProgress.Steps;
+ this.progress14.Size = new System.Drawing.Size(694, 23);
+ this.progress14.Steps = 50;
+ this.progress14.StepSize = 5;
+ this.progress14.TabIndex = 61;
+ this.progress14.Text = "progress14";
+ this.progress14.Value = 0.5F;
+ //
+ // progress12
+ //
+ this.progress12.Location = new System.Drawing.Point(3, 529);
+ this.progress12.Name = "progress12";
+ this.progress12.Shape = AntdUI.TShapeProgress.Steps;
+ this.progress12.Size = new System.Drawing.Size(694, 23);
+ this.progress12.Steps = 50;
+ this.progress12.StepSize = 5;
+ this.progress12.TabIndex = 60;
+ this.progress12.Text = "progress12";
+ this.progress12.TextUnit = "";
+ this.progress12.Value = 0.3F;
+ //
+ // label7
+ //
+ this.label7.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label7.Location = new System.Drawing.Point(3, 499);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(694, 24);
+ this.label7.TabIndex = 59;
+ this.label7.Text = "步骤进度条";
+ this.label7.TooltipConfig = null;
+ //
// progress13
//
this.progress13.ContainerControl = this;
@@ -330,100 +420,26 @@
this.label1.Text = "Progress 进度条";
this.label1.TooltipConfig = null;
//
- // label7
+ // progress19
//
- this.label7.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label7.Location = new System.Drawing.Point(3, 499);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(694, 24);
- this.label7.TabIndex = 59;
- this.label7.Text = "步骤进度条";
- this.label7.TooltipConfig = null;
- //
- // progress12
- //
- this.progress12.Location = new System.Drawing.Point(3, 529);
- this.progress12.Name = "progress12";
- this.progress12.Shape = AntdUI.TShapeProgress.Steps;
- this.progress12.Size = new System.Drawing.Size(694, 23);
- this.progress12.Steps = 50;
- this.progress12.StepSize = 5;
- this.progress12.TabIndex = 60;
- this.progress12.Text = "progress12";
- this.progress12.TextUnit = "";
- this.progress12.Value = 0.3F;
- //
- // progress14
- //
- this.progress14.Location = new System.Drawing.Point(3, 558);
- this.progress14.Name = "progress14";
- this.progress14.Shape = AntdUI.TShapeProgress.Steps;
- this.progress14.Size = new System.Drawing.Size(694, 23);
- this.progress14.Steps = 50;
- this.progress14.StepSize = 5;
- this.progress14.TabIndex = 61;
- this.progress14.Text = "progress14";
- this.progress14.Value = 0.5F;
- //
- // progress15
- //
- this.progress15.Location = new System.Drawing.Point(3, 587);
- this.progress15.Name = "progress15";
- this.progress15.Shape = AntdUI.TShapeProgress.Steps;
- this.progress15.Size = new System.Drawing.Size(694, 23);
- this.progress15.State = AntdUI.TType.Error;
- this.progress15.Steps = 50;
- this.progress15.StepSize = 5;
- this.progress15.TabIndex = 62;
- this.progress15.Text = "progress15";
- this.progress15.Value = 0.7F;
- //
- // progress16
- //
- this.progress16.Location = new System.Drawing.Point(3, 616);
- this.progress16.Name = "progress16";
- this.progress16.Shape = AntdUI.TShapeProgress.Steps;
- this.progress16.Size = new System.Drawing.Size(694, 23);
- this.progress16.State = AntdUI.TType.Success;
- this.progress16.Steps = 50;
- this.progress16.StepSize = 5;
- this.progress16.TabIndex = 63;
- this.progress16.Text = "progress16";
- this.progress16.Value = 1F;
- //
- // progress17
- //
- this.progress17.Location = new System.Drawing.Point(3, 645);
- this.progress17.Name = "progress17";
- this.progress17.Shape = AntdUI.TShapeProgress.Steps;
- this.progress17.Size = new System.Drawing.Size(694, 23);
- this.progress17.StepGap = 8;
- this.progress17.Steps = 20;
- this.progress17.StepSize = 10;
- this.progress17.TabIndex = 64;
- this.progress17.Text = "progress17";
- this.progress17.Value = 0.3F;
- //
- // progress18
- //
- this.progress18.Location = new System.Drawing.Point(3, 674);
- this.progress18.Name = "progress18";
- this.progress18.Shape = AntdUI.TShapeProgress.Steps;
- this.progress18.Size = new System.Drawing.Size(694, 23);
- this.progress18.State = AntdUI.TType.Warn;
- this.progress18.StepGap = 5;
- this.progress18.Steps = 50;
- this.progress18.StepSize = 2;
- this.progress18.TabIndex = 65;
- this.progress18.Text = "progress18";
- this.progress18.Value = 0.3F;
+ this.progress19.Location = new System.Drawing.Point(3, 703);
+ this.progress19.Name = "progress19";
+ this.progress19.Shape = AntdUI.TShapeProgress.Steps;
+ this.progress19.Size = new System.Drawing.Size(694, 23);
+ this.progress19.State = AntdUI.TType.Warn;
+ this.progress19.StepGap = 5;
+ this.progress19.Steps = 50;
+ this.progress19.StepSize = 0;
+ this.progress19.TabIndex = 66;
+ this.progress19.Text = "progress19";
+ this.progress19.Value = 0.3F;
//
// ProgressDemo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.stackPanel1);
this.Name = "ProgressDemo";
- this.Size = new System.Drawing.Size(700, 715);
+ this.Size = new System.Drawing.Size(700, 741);
this.stackPanel1.ResumeLayout(false);
this.flowPanel1.ResumeLayout(false);
this.flowPanel4.ResumeLayout(false);
@@ -462,5 +478,6 @@
private AntdUI.Progress progress16;
private AntdUI.Progress progress15;
private AntdUI.Progress progress18;
+ private AntdUI.Progress progress19;
}
}
diff --git a/Views/TabsDemo.Designer.cs b/Views/TabsDemo.Designer.cs
index 8944b01..363f5c9 100644
--- a/Views/TabsDemo.Designer.cs
+++ b/Views/TabsDemo.Designer.cs
@@ -28,11 +28,13 @@
///
private void InitializeComponent()
{
+ AntdUI.Tabs.StyleLine styleLine2 = new AntdUI.Tabs.StyleLine();
+ AntdUI.Tabs.StyleCard styleCard1 = new AntdUI.Tabs.StyleCard();
+ AntdUI.Tabs.StyleLine styleLine3 = new AntdUI.Tabs.StyleLine();
AntdUI.Tabs.StyleLine styleLine1 = new AntdUI.Tabs.StyleLine();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TabsDemo));
- AntdUI.Tabs.StyleCard styleCard1 = new AntdUI.Tabs.StyleCard();
- AntdUI.Tabs.StyleLine styleLine2 = new AntdUI.Tabs.StyleLine();
this.stackPanel1 = new AntdUI.StackPanel();
+ this.label15 = new AntdUI.Label();
this.tabs3 = new AntdUI.Tabs();
this.tabPage5 = new AntdUI.TabPage();
this.label10 = new AntdUI.Label();
@@ -60,6 +62,24 @@
this.divider1 = new AntdUI.Divider();
this.label2 = new AntdUI.Label();
this.label1 = new AntdUI.Label();
+ this.tabPage11 = new AntdUI.TabPage();
+ this.tabPage12 = new AntdUI.TabPage();
+ this.tabPage13 = new AntdUI.TabPage();
+ this.tabPage14 = new AntdUI.TabPage();
+ this.tabPage15 = new AntdUI.TabPage();
+ this.tabPage16 = new AntdUI.TabPage();
+ this.tabPage17 = new AntdUI.TabPage();
+ this.tabPage18 = new AntdUI.TabPage();
+ this.tabPage19 = new AntdUI.TabPage();
+ this.tabPage20 = new AntdUI.TabPage();
+ this.tabPage21 = new AntdUI.TabPage();
+ this.tabPage22 = new AntdUI.TabPage();
+ this.flowPanel3 = new AntdUI.FlowPanel();
+ this.tabs_typeexceed = new AntdUI.Tabs();
+ this.tabPage10 = new AntdUI.TabPage();
+ this.label16 = new AntdUI.Label();
+ this.label17 = new AntdUI.Label();
+ this.select_typeexceed = new AntdUI.Select();
this.stackPanel1.SuspendLayout();
this.tabs3.SuspendLayout();
this.tabPage5.SuspendLayout();
@@ -73,10 +93,16 @@
this.tabPage1.SuspendLayout();
this.tabPage6.SuspendLayout();
this.tabPage7.SuspendLayout();
+ this.flowPanel3.SuspendLayout();
+ this.tabs_typeexceed.SuspendLayout();
+ this.tabPage10.SuspendLayout();
this.SuspendLayout();
//
// stackPanel1
//
+ this.stackPanel1.Controls.Add(this.tabs_typeexceed);
+ this.stackPanel1.Controls.Add(this.flowPanel3);
+ this.stackPanel1.Controls.Add(this.label15);
this.stackPanel1.Controls.Add(this.tabs3);
this.stackPanel1.Controls.Add(this.label9);
this.stackPanel1.Controls.Add(this.tabs_close);
@@ -94,6 +120,16 @@
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
//
+ // label15
+ //
+ this.label15.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label15.Location = new System.Drawing.Point(3, 565);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(694, 24);
+ this.label15.TabIndex = 30;
+ this.label15.Text = "超出显示";
+ this.label15.TooltipConfig = null;
+ //
// tabs3
//
this.tabs3.Centered = true;
@@ -106,7 +142,7 @@
this.tabs3.Pages.Add(this.tabPage8);
this.tabs3.Pages.Add(this.tabPage9);
this.tabs3.Size = new System.Drawing.Size(694, 120);
- this.tabs3.Style = styleLine1;
+ this.tabs3.Style = styleLine2;
this.tabs3.TabIndex = 29;
this.tabs3.Text = "tabs3";
//
@@ -292,7 +328,7 @@
this.tabs1.Pages.Add(this.tabPage6);
this.tabs1.Pages.Add(this.tabPage7);
this.tabs1.Size = new System.Drawing.Size(694, 120);
- this.tabs1.Style = styleLine2;
+ this.tabs1.Style = styleLine3;
this.tabs1.TabIndex = 23;
this.tabs1.Text = "tabs1";
//
@@ -397,6 +433,192 @@
this.label1.Text = "Tabs 标签页";
this.label1.TooltipConfig = null;
//
+ // tabPage11
+ //
+ this.tabPage11.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage11.Location = new System.Drawing.Point(0, 0);
+ this.tabPage11.Name = "tabPage11";
+ this.tabPage11.Size = new System.Drawing.Size(0, 0);
+ this.tabPage11.TabIndex = 0;
+ this.tabPage11.Text = "Tab2";
+ //
+ // tabPage12
+ //
+ this.tabPage12.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage12.Location = new System.Drawing.Point(3, 38);
+ this.tabPage12.Name = "tabPage12";
+ this.tabPage12.Size = new System.Drawing.Size(688, 47);
+ this.tabPage12.TabIndex = 0;
+ this.tabPage12.Text = "Tab3";
+ //
+ // tabPage13
+ //
+ this.tabPage13.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage13.Location = new System.Drawing.Point(0, 0);
+ this.tabPage13.Name = "tabPage13";
+ this.tabPage13.Size = new System.Drawing.Size(0, 0);
+ this.tabPage13.TabIndex = 0;
+ this.tabPage13.Text = "Tab4";
+ //
+ // tabPage14
+ //
+ this.tabPage14.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage14.Location = new System.Drawing.Point(0, 0);
+ this.tabPage14.Name = "tabPage14";
+ this.tabPage14.Size = new System.Drawing.Size(0, 0);
+ this.tabPage14.TabIndex = 0;
+ this.tabPage14.Text = "Tab5";
+ //
+ // tabPage15
+ //
+ this.tabPage15.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage15.Location = new System.Drawing.Point(0, 0);
+ this.tabPage15.Name = "tabPage15";
+ this.tabPage15.Size = new System.Drawing.Size(0, 0);
+ this.tabPage15.TabIndex = 0;
+ this.tabPage15.Text = "Tab6";
+ //
+ // tabPage16
+ //
+ this.tabPage16.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage16.Location = new System.Drawing.Point(0, 0);
+ this.tabPage16.Name = "tabPage16";
+ this.tabPage16.Size = new System.Drawing.Size(0, 0);
+ this.tabPage16.TabIndex = 0;
+ this.tabPage16.Text = "Tab7";
+ //
+ // tabPage17
+ //
+ this.tabPage17.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage17.Location = new System.Drawing.Point(0, 0);
+ this.tabPage17.Name = "tabPage17";
+ this.tabPage17.Size = new System.Drawing.Size(0, 0);
+ this.tabPage17.TabIndex = 0;
+ this.tabPage17.Text = "Tab8";
+ //
+ // tabPage18
+ //
+ this.tabPage18.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage18.Location = new System.Drawing.Point(3, 38);
+ this.tabPage18.Name = "tabPage18";
+ this.tabPage18.Size = new System.Drawing.Size(688, 47);
+ this.tabPage18.TabIndex = 0;
+ this.tabPage18.Text = "Tab9";
+ //
+ // tabPage19
+ //
+ this.tabPage19.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage19.Location = new System.Drawing.Point(3, 38);
+ this.tabPage19.Name = "tabPage19";
+ this.tabPage19.Size = new System.Drawing.Size(688, 47);
+ this.tabPage19.TabIndex = 0;
+ this.tabPage19.Text = "Tab10";
+ //
+ // tabPage20
+ //
+ this.tabPage20.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage20.Location = new System.Drawing.Point(3, 38);
+ this.tabPage20.Name = "tabPage20";
+ this.tabPage20.Size = new System.Drawing.Size(688, 47);
+ this.tabPage20.TabIndex = 0;
+ this.tabPage20.Text = "Tab11";
+ //
+ // tabPage21
+ //
+ this.tabPage21.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage21.Location = new System.Drawing.Point(0, 0);
+ this.tabPage21.Name = "tabPage21";
+ this.tabPage21.Size = new System.Drawing.Size(0, 0);
+ this.tabPage21.TabIndex = 0;
+ this.tabPage21.Text = "Tab12";
+ //
+ // tabPage22
+ //
+ this.tabPage22.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage22.Location = new System.Drawing.Point(0, 0);
+ this.tabPage22.Name = "tabPage22";
+ this.tabPage22.Size = new System.Drawing.Size(0, 0);
+ this.tabPage22.TabIndex = 0;
+ this.tabPage22.Text = "Tab13";
+ //
+ // flowPanel3
+ //
+ this.flowPanel3.Controls.Add(this.select_typeexceed);
+ this.flowPanel3.Controls.Add(this.label17);
+ this.flowPanel3.Location = new System.Drawing.Point(3, 595);
+ this.flowPanel3.Name = "flowPanel3";
+ this.flowPanel3.Size = new System.Drawing.Size(694, 38);
+ this.flowPanel3.TabIndex = 33;
+ this.flowPanel3.Text = "flowPanel3";
+ //
+ // tabs_typeexceed
+ //
+ this.tabs_typeexceed.Cursor = System.Windows.Forms.Cursors.Default;
+ this.tabs_typeexceed.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
+ this.tabs_typeexceed.Gap = 12;
+ this.tabs_typeexceed.Location = new System.Drawing.Point(3, 639);
+ this.tabs_typeexceed.Name = "tabs_typeexceed";
+ this.tabs_typeexceed.Pages.Add(this.tabPage10);
+ this.tabs_typeexceed.Pages.Add(this.tabPage11);
+ this.tabs_typeexceed.Pages.Add(this.tabPage12);
+ this.tabs_typeexceed.Pages.Add(this.tabPage13);
+ this.tabs_typeexceed.Pages.Add(this.tabPage14);
+ this.tabs_typeexceed.Pages.Add(this.tabPage15);
+ this.tabs_typeexceed.Pages.Add(this.tabPage16);
+ this.tabs_typeexceed.Pages.Add(this.tabPage17);
+ this.tabs_typeexceed.Pages.Add(this.tabPage18);
+ this.tabs_typeexceed.Pages.Add(this.tabPage19);
+ this.tabs_typeexceed.Pages.Add(this.tabPage20);
+ this.tabs_typeexceed.Pages.Add(this.tabPage21);
+ this.tabs_typeexceed.Pages.Add(this.tabPage22);
+ this.tabs_typeexceed.Size = new System.Drawing.Size(694, 88);
+ this.tabs_typeexceed.Style = styleLine1;
+ this.tabs_typeexceed.TabIndex = 35;
+ this.tabs_typeexceed.Text = "tabs2";
+ this.tabs_typeexceed.TypExceed = AntdUI.TabTypExceed.None;
+ //
+ // tabPage10
+ //
+ this.tabPage10.Controls.Add(this.label16);
+ this.tabPage10.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.tabPage10.IconSvg = resources.GetString("tabPage10.IconSvg");
+ this.tabPage10.Location = new System.Drawing.Point(3, 38);
+ this.tabPage10.Name = "tabPage10";
+ this.tabPage10.Size = new System.Drawing.Size(688, 47);
+ this.tabPage10.TabIndex = 34;
+ this.tabPage10.Text = "Tab1";
+ //
+ // label16
+ //
+ this.label16.Dock = System.Windows.Forms.DockStyle.Top;
+ this.label16.Location = new System.Drawing.Point(0, 0);
+ this.label16.Name = "label16";
+ this.label16.Size = new System.Drawing.Size(688, 23);
+ this.label16.TabIndex = 0;
+ this.label16.Text = "Content of Tab Pane 1";
+ this.label16.TooltipConfig = null;
+ //
+ // label17
+ //
+ this.label17.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label17.Location = new System.Drawing.Point(3, 3);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(112, 26);
+ this.label17.TabIndex = 6;
+ this.label17.Text = "TypeExceed";
+ this.label17.TooltipConfig = null;
+ //
+ // select_typeexceed
+ //
+ this.select_typeexceed.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.select_typeexceed.List = true;
+ this.select_typeexceed.Location = new System.Drawing.Point(121, 3);
+ this.select_typeexceed.Name = "select_typeexceed";
+ this.select_typeexceed.Size = new System.Drawing.Size(108, 26);
+ this.select_typeexceed.TabIndex = 12;
+ this.select_typeexceed.WaveSize = 0;
+ //
// TabsDemo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
@@ -416,6 +638,9 @@
this.tabPage1.ResumeLayout(false);
this.tabPage6.ResumeLayout(false);
this.tabPage7.ResumeLayout(false);
+ this.flowPanel3.ResumeLayout(false);
+ this.tabs_typeexceed.ResumeLayout(false);
+ this.tabPage10.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -450,5 +675,24 @@
private AntdUI.Label label12;
private AntdUI.Label label13;
private AntdUI.Label label14;
+ private AntdUI.Label label15;
+ private AntdUI.TabPage tabPage11;
+ private AntdUI.TabPage tabPage12;
+ private AntdUI.TabPage tabPage13;
+ private AntdUI.TabPage tabPage14;
+ private AntdUI.TabPage tabPage15;
+ private AntdUI.TabPage tabPage16;
+ private AntdUI.TabPage tabPage17;
+ private AntdUI.TabPage tabPage18;
+ private AntdUI.TabPage tabPage19;
+ private AntdUI.TabPage tabPage20;
+ private AntdUI.TabPage tabPage21;
+ private AntdUI.TabPage tabPage22;
+ private AntdUI.Tabs tabs_typeexceed;
+ private AntdUI.TabPage tabPage10;
+ private AntdUI.Label label16;
+ private AntdUI.FlowPanel flowPanel3;
+ private AntdUI.Label label17;
+ private AntdUI.Select select_typeexceed;
}
}
diff --git a/Views/TabsDemo.cs b/Views/TabsDemo.cs
index 4c79899..12fcfc1 100644
--- a/Views/TabsDemo.cs
+++ b/Views/TabsDemo.cs
@@ -1,4 +1,5 @@
-using System;
+using AntdUI;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -17,6 +18,43 @@ namespace AntdUIDemo.Views
{
window = _window;
InitializeComponent();
+ //初始化下拉框
+ InitSelectItems();
+ //设置默认值
+ InitData();
+ // 绑定事件
+ BindEventHandler();
+ }
+
+ private void InitSelectItems()
+ {
+ select_typeexceed.Items.Clear();
+ foreach (TabTypExceed typExceed in Enum.GetValues(typeof(TabTypExceed)))
+ {
+ select_typeexceed.Items.Add(typExceed);
+ }
+ }
+
+ private void InitData()
+ {
+ select_typeexceed.SelectedIndex = 0;
+ }
+
+ private void BindEventHandler()
+ {
+ select_typeexceed.SelectedIndexChanged += select_intvalue_SelectedIndexChanged;
+ }
+
+ private void select_intvalue_SelectedIndexChanged(object sender, IntEventArgs e)
+ {
+ if (tabs_typeexceed.InvokeRequired)
+ {
+ tabs_typeexceed.Invoke(new Action(() => { tabs_typeexceed.TypExceed = (TabTypExceed)select_typeexceed.SelectedValue; }));
+ }
+ else
+ {
+ tabs_typeexceed.TypExceed = (TabTypExceed)select_typeexceed.SelectedValue;
+ }
}
}
}
diff --git a/Views/TabsDemo.resx b/Views/TabsDemo.resx
index cb3e45f..67d0a5e 100644
--- a/Views/TabsDemo.resx
+++ b/Views/TabsDemo.resx
@@ -117,6 +117,9 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ <svg t="1725182478452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5848" width="200" height="200"><path d="M836.608 675.84q41.984 59.392 96.256 76.8-23.552 72.704-74.752 151.552-78.848 118.784-155.648 118.784-28.672 0-84.992-19.456-52.224-19.456-91.136-19.456t-86.016 20.48q-49.152 19.456-80.896 19.456-92.16 0-181.248-156.672-89.088-154.624-89.088-304.128 0-138.24 67.584-226.304 69.632-88.064 172.032-88.064 22.528 0 50.176 5.632t57.344 20.992q31.744 17.408 52.224 24.064t31.744 6.656q13.312 0 40.96-6.144t55.296-22.528q29.696-16.384 51.2-24.576t44.032-8.192q71.68 0 129.024 38.912 30.72 20.48 62.464 60.416-47.104 40.96-68.608 71.68-39.936 57.344-39.936 124.928 0 74.752 41.984 135.168z m-205.824-478.208q-35.84 33.792-65.536 44.032-10.24 3.072-26.112 5.632t-36.352 4.608q1.024-90.112 47.104-155.648T701.44 6.144q2.048 10.24 3.072 14.336v11.264q0 36.864-17.408 82.944-18.432 45.056-56.32 82.944z" fill="#272636" p-id="5849"></path></svg>
+
<svg t="1725182478452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5848" width="200" height="200"><path d="M836.608 675.84q41.984 59.392 96.256 76.8-23.552 72.704-74.752 151.552-78.848 118.784-155.648 118.784-28.672 0-84.992-19.456-52.224-19.456-91.136-19.456t-86.016 20.48q-49.152 19.456-80.896 19.456-92.16 0-181.248-156.672-89.088-154.624-89.088-304.128 0-138.24 67.584-226.304 69.632-88.064 172.032-88.064 22.528 0 50.176 5.632t57.344 20.992q31.744 17.408 52.224 24.064t31.744 6.656q13.312 0 40.96-6.144t55.296-22.528q29.696-16.384 51.2-24.576t44.032-8.192q71.68 0 129.024 38.912 30.72 20.48 62.464 60.416-47.104 40.96-68.608 71.68-39.936 57.344-39.936 124.928 0 74.752 41.984 135.168z m-205.824-478.208q-35.84 33.792-65.536 44.032-10.24 3.072-26.112 5.632t-36.352 4.608q1.024-90.112 47.104-155.648T701.44 6.144q2.048 10.24 3.072 14.336v11.264q0 36.864-17.408 82.944-18.432 45.056-56.32 82.944z" fill="#272636" p-id="5849"></path></svg>
diff --git a/assets/screenshots/Tabs.png b/assets/screenshots/Tabs.png
index 867ec24..3c924c2 100644
Binary files a/assets/screenshots/Tabs.png and b/assets/screenshots/Tabs.png differ