diff --git a/AntdUIDemo.csproj b/AntdUIDemo.csproj
index cf33ba6..fb3271d 100644
--- a/AntdUIDemo.csproj
+++ b/AntdUIDemo.csproj
@@ -1,54 +1,55 @@
-
- WinExe
- net48
- true
- true
- false
- app.manifest
- assets\icon.ico
- AnyCPU
- Copyright © 2024 czz_y
- $(Version)
- $(Version)
- 1.5.4.0
- czz_y
- 基于 Winform UI框架 AntdUI 设计的Demo
- https://gitee.com/mubaiyanghua/antd-uidemo
- logo.png
- README.md
- https://gitee.com/mubaiyanghua/antd-uidemo
- git
- AntdUIDemo;Winform;WinformUI;AntDesign;控件演示
- True
-
+
+ WinExe
+ net48
+ true
+ true
+ false
+ app.manifest
+ assets\icon.ico
+ AnyCPU
+ latest
+ Copyright © 2024 czz_y
+ $(Version)
+ $(Version)
+ 1.5.4.0
+ czz_y
+ 基于 Winform UI框架 AntdUI 设计的Demo
+ https://gitee.com/mubaiyanghua/antd-uidemo
+ logo.png
+ README.md
+ https://gitee.com/mubaiyanghua/antd-uidemo
+ git
+ AntdUIDemo;Winform;WinformUI;AntDesign;控件演示
+ True
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
- True
- True
- Resources.resx
-
-
+
+
+ True
+ True
+ Resources.resx
+
+
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
-
-
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
\ No newline at end of file
diff --git a/MainWindow.cs b/MainWindow.cs
index b03bc70..ef3137c 100644
--- a/MainWindow.cs
+++ b/MainWindow.cs
@@ -164,6 +164,9 @@ namespace AntdUIDemo
case "Menu":
control = new MenuDemo();
break;
+ case "Pagination":
+ control = new PaginationDemo();
+ break;
}
if (control != null)
{
diff --git a/README.md b/README.md
index bbfe2f6..10db08d 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,7 @@
#### Dropdown 下拉菜单

#### Menu 导航菜单
+
#### Pagination 分页
#### Steps 步骤条
diff --git a/Views/FloatButtonDemo.Designer.cs b/Views/FloatButtonDemo.Designer.cs
index 98963f2..3e96de8 100644
--- a/Views/FloatButtonDemo.Designer.cs
+++ b/Views/FloatButtonDemo.Designer.cs
@@ -143,9 +143,9 @@
//
// colorPicker
//
- this.colorPicker.Location = new System.Drawing.Point(489, 3);
+ this.colorPicker.Location = new System.Drawing.Point(459, 3);
this.colorPicker.Name = "colorPicker";
- this.colorPicker.Size = new System.Drawing.Size(90, 26);
+ this.colorPicker.Size = new System.Drawing.Size(75, 26);
this.colorPicker.TabIndex = 15;
this.colorPicker.Text = "colorPicker1";
this.colorPicker.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255)))));
@@ -154,7 +154,7 @@
// label16
//
this.label16.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label16.Location = new System.Drawing.Point(391, 3);
+ this.label16.Location = new System.Drawing.Point(361, 3);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(92, 26);
this.label16.TabIndex = 14;
@@ -163,9 +163,9 @@
// input_badgesize
//
this.input_badgesize.DecimalPlaces = 2;
- this.input_badgesize.Location = new System.Drawing.Point(295, 3);
+ this.input_badgesize.Location = new System.Drawing.Point(280, 3);
this.input_badgesize.Name = "input_badgesize";
- this.input_badgesize.Size = new System.Drawing.Size(90, 26);
+ this.input_badgesize.Size = new System.Drawing.Size(75, 26);
this.input_badgesize.TabIndex = 13;
this.input_badgesize.Text = "6.00";
this.input_badgesize.Value = new decimal(new int[] {
@@ -178,7 +178,7 @@
// 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(197, 3);
+ this.label15.Location = new System.Drawing.Point(182, 3);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(92, 26);
this.label15.TabIndex = 12;
@@ -188,7 +188,7 @@
//
this.input_badge.Location = new System.Drawing.Point(101, 3);
this.input_badge.Name = "input_badge";
- this.input_badge.Size = new System.Drawing.Size(90, 26);
+ this.input_badge.Size = new System.Drawing.Size(75, 26);
this.input_badge.TabIndex = 5;
this.input_badge.WaveSize = 0;
//
@@ -217,9 +217,9 @@
//
// input_radius
//
- this.input_radius.Location = new System.Drawing.Point(489, 3);
+ this.input_radius.Location = new System.Drawing.Point(459, 3);
this.input_radius.Name = "input_radius";
- this.input_radius.Size = new System.Drawing.Size(90, 26);
+ this.input_radius.Size = new System.Drawing.Size(75, 26);
this.input_radius.TabIndex = 11;
this.input_radius.Text = "6";
this.input_radius.Value = new decimal(new int[] {
@@ -232,7 +232,7 @@
// label12
//
this.label12.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label12.Location = new System.Drawing.Point(391, 3);
+ this.label12.Location = new System.Drawing.Point(361, 3);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(92, 26);
this.label12.TabIndex = 10;
@@ -242,16 +242,16 @@
//
this.select_type.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.select_type.List = true;
- this.select_type.Location = new System.Drawing.Point(295, 3);
+ this.select_type.Location = new System.Drawing.Point(280, 3);
this.select_type.Name = "select_type";
- this.select_type.Size = new System.Drawing.Size(90, 26);
+ this.select_type.Size = new System.Drawing.Size(75, 26);
this.select_type.TabIndex = 9;
this.select_type.WaveSize = 0;
//
// label13
//
this.label13.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label13.Location = new System.Drawing.Point(197, 3);
+ this.label13.Location = new System.Drawing.Point(182, 3);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(92, 26);
this.label13.TabIndex = 8;
@@ -268,7 +268,7 @@
this.select_round.Name = "select_round";
this.select_round.SelectedIndex = 1;
this.select_round.SelectedValue = "False";
- this.select_round.Size = new System.Drawing.Size(90, 26);
+ this.select_round.Size = new System.Drawing.Size(75, 26);
this.select_round.TabIndex = 5;
this.select_round.Text = "False";
this.select_round.WaveSize = 0;
@@ -307,9 +307,9 @@
//
// input_my
//
- this.input_my.Location = new System.Drawing.Point(489, 3);
+ this.input_my.Location = new System.Drawing.Point(459, 3);
this.input_my.Name = "input_my";
- this.input_my.Size = new System.Drawing.Size(90, 26);
+ this.input_my.Size = new System.Drawing.Size(75, 26);
this.input_my.TabIndex = 9;
this.input_my.Text = "24";
this.input_my.Value = new decimal(new int[] {
@@ -322,7 +322,7 @@
// label8
//
this.label8.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label8.Location = new System.Drawing.Point(391, 3);
+ this.label8.Location = new System.Drawing.Point(361, 3);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(92, 26);
this.label8.TabIndex = 8;
@@ -330,9 +330,9 @@
//
// input_mx
//
- this.input_mx.Location = new System.Drawing.Point(295, 3);
+ this.input_mx.Location = new System.Drawing.Point(280, 3);
this.input_mx.Name = "input_mx";
- this.input_mx.Size = new System.Drawing.Size(90, 26);
+ this.input_mx.Size = new System.Drawing.Size(75, 26);
this.input_mx.TabIndex = 7;
this.input_mx.Text = "24";
this.input_mx.Value = new decimal(new int[] {
@@ -345,7 +345,7 @@
// 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(197, 3);
+ this.label7.Location = new System.Drawing.Point(182, 3);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(92, 26);
this.label7.TabIndex = 6;
@@ -355,7 +355,7 @@
//
this.input_size.Location = new System.Drawing.Point(101, 3);
this.input_size.Name = "input_size";
- this.input_size.Size = new System.Drawing.Size(90, 26);
+ this.input_size.Size = new System.Drawing.Size(75, 26);
this.input_size.TabIndex = 5;
this.input_size.Text = "40";
this.input_size.Value = new decimal(new int[] {
@@ -395,11 +395,11 @@
"True",
"False"});
this.select_vertical.List = true;
- this.select_vertical.Location = new System.Drawing.Point(489, 3);
+ this.select_vertical.Location = new System.Drawing.Point(459, 3);
this.select_vertical.Name = "select_vertical";
this.select_vertical.SelectedIndex = 0;
this.select_vertical.SelectedValue = "True";
- this.select_vertical.Size = new System.Drawing.Size(90, 26);
+ this.select_vertical.Size = new System.Drawing.Size(75, 26);
this.select_vertical.TabIndex = 11;
this.select_vertical.Text = "True";
this.select_vertical.WaveSize = 0;
@@ -407,7 +407,7 @@
// label5
//
this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label5.Location = new System.Drawing.Point(391, 3);
+ this.label5.Location = new System.Drawing.Point(361, 3);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(92, 26);
this.label5.TabIndex = 10;
@@ -420,10 +420,10 @@
"True",
"False"});
this.select_topmost.List = true;
- this.select_topmost.Location = new System.Drawing.Point(295, 3);
+ this.select_topmost.Location = new System.Drawing.Point(280, 3);
this.select_topmost.Name = "select_topmost";
this.select_topmost.SelectedValue = "是";
- this.select_topmost.Size = new System.Drawing.Size(90, 26);
+ this.select_topmost.Size = new System.Drawing.Size(75, 26);
this.select_topmost.TabIndex = 9;
this.select_topmost.Text = "True";
this.select_topmost.WaveSize = 0;
@@ -431,7 +431,7 @@
// label6
//
this.label6.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label6.Location = new System.Drawing.Point(197, 3);
+ this.label6.Location = new System.Drawing.Point(182, 3);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(92, 26);
this.label6.TabIndex = 8;
@@ -443,7 +443,7 @@
this.select_align.List = true;
this.select_align.Location = new System.Drawing.Point(101, 3);
this.select_align.Name = "select_align";
- this.select_align.Size = new System.Drawing.Size(90, 26);
+ this.select_align.Size = new System.Drawing.Size(75, 26);
this.select_align.TabIndex = 5;
this.select_align.WaveSize = 0;
//
diff --git a/Views/MenuDemo.Designer.cs b/Views/MenuDemo.Designer.cs
index 20f3bf8..51bb814 100644
--- a/Views/MenuDemo.Designer.cs
+++ b/Views/MenuDemo.Designer.cs
@@ -28,27 +28,53 @@
///
private void InitializeComponent()
{
- AntdUI.MenuItem menuItem1 = new AntdUI.MenuItem();
+ AntdUI.Tabs.StyleLine styleLine2 = new AntdUI.Tabs.StyleLine();
+ AntdUI.MenuItem menuItem37 = new AntdUI.MenuItem();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MenuDemo));
- AntdUI.MenuItem menuItem2 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem3 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem4 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem5 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem6 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem7 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem8 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem9 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem10 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem11 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem12 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem13 = new AntdUI.MenuItem();
- AntdUI.MenuItem menuItem14 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem38 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem39 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem40 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem41 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem42 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem43 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem44 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem45 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem46 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem47 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem48 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem49 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem50 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem51 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem52 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem53 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem54 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem55 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem56 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem57 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem58 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem59 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem60 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem61 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem62 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem63 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem64 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem65 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem66 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem67 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem68 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem69 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem70 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem71 = new AntdUI.MenuItem();
+ AntdUI.MenuItem menuItem72 = new AntdUI.MenuItem();
this.stackPanel1 = new AntdUI.StackPanel();
- this.label1 = new AntdUI.Label();
- this.label2 = new AntdUI.Label();
- this.divider1 = new AntdUI.Divider();
this.stackPanel2 = new AntdUI.StackPanel();
- this.menu = new AntdUI.Menu();
+ this.tabs1 = new AntdUI.Tabs();
+ this.tabPage1 = new AntdUI.TabPage();
+ this.menu_inline = new AntdUI.Menu();
+ this.tabPage2 = new AntdUI.TabPage();
+ this.menu_vertical = new AntdUI.Menu();
+ this.tabPage3 = new AntdUI.TabPage();
+ this.menu_horizontal = new AntdUI.Menu();
this.divider2 = new AntdUI.Divider();
this.stackPanel3 = new AntdUI.StackPanel();
this.buttonCZ = new AntdUI.Button();
@@ -76,20 +102,21 @@
this.stackPanel8 = new AntdUI.StackPanel();
this.input_radius = new AntdUI.InputNumber();
this.label6 = new AntdUI.Label();
- this.stackPanel7 = new AntdUI.StackPanel();
- this.select_mode = new AntdUI.Select();
- this.label5 = new AntdUI.Label();
this.stackPanel6 = new AntdUI.StackPanel();
this.select_indent = new AntdUI.Select();
this.label4 = new AntdUI.Label();
this.stackPanel5 = new AntdUI.StackPanel();
this.select_collapsed = new AntdUI.Select();
this.label3 = new AntdUI.Label();
- this.stackPanel4 = new AntdUI.StackPanel();
- this.select_autocollapse = new AntdUI.Select();
- this.label10 = new AntdUI.Label();
+ this.divider1 = new AntdUI.Divider();
+ this.label2 = new AntdUI.Label();
+ this.label1 = new AntdUI.Label();
this.stackPanel1.SuspendLayout();
this.stackPanel2.SuspendLayout();
+ this.tabs1.SuspendLayout();
+ this.tabPage1.SuspendLayout();
+ this.tabPage2.SuspendLayout();
+ this.tabPage3.SuspendLayout();
this.stackPanel3.SuspendLayout();
this.stackPanel14.SuspendLayout();
this.stackPanel13.SuspendLayout();
@@ -99,10 +126,8 @@
this.stackPanel10.SuspendLayout();
this.stackPanel9.SuspendLayout();
this.stackPanel8.SuspendLayout();
- this.stackPanel7.SuspendLayout();
this.stackPanel6.SuspendLayout();
this.stackPanel5.SuspendLayout();
- this.stackPanel4.SuspendLayout();
this.SuspendLayout();
//
// stackPanel1
@@ -119,130 +144,290 @@
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
//
- // label1
- //
- this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label1.Location = new System.Drawing.Point(3, 3);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(694, 40);
- this.label1.TabIndex = 2;
- this.label1.Text = "Menu 导航菜单";
- //
- // label2
- //
- this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label2.Location = new System.Drawing.Point(3, 49);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(694, 24);
- this.label2.TabIndex = 3;
- this.label2.Text = "为页面和功能提供导航的菜单列表。";
- //
- // divider1
- //
- this.divider1.Location = new System.Drawing.Point(3, 79);
- this.divider1.Name = "divider1";
- this.divider1.Size = new System.Drawing.Size(694, 2);
- this.divider1.TabIndex = 4;
- //
// stackPanel2
//
- this.stackPanel2.Controls.Add(this.menu);
+ this.stackPanel2.Controls.Add(this.tabs1);
this.stackPanel2.Controls.Add(this.divider2);
this.stackPanel2.Controls.Add(this.stackPanel3);
this.stackPanel2.Location = new System.Drawing.Point(3, 87);
this.stackPanel2.Name = "stackPanel2";
- this.stackPanel2.Size = new System.Drawing.Size(694, 498);
+ this.stackPanel2.Size = new System.Drawing.Size(694, 426);
this.stackPanel2.TabIndex = 5;
this.stackPanel2.Text = "stackPanel2";
//
- // menu
+ // tabs1
//
- menuItem1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
- menuItem1.IconSvg = resources.GetString("menuItem1.IconSvg");
- menuItem1.PARENTITEM = null;
- menuItem1.Select = false;
- menuItem2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- menuItem2.PARENTITEM = menuItem1;
- menuItem2.Select = false;
- menuItem2.Text = "SVG可以变色";
- menuItem3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- menuItem3.PARENTITEM = menuItem1;
- menuItem3.Select = false;
- menuItem3.Text = "如果变不了";
- menuItem4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- menuItem4.PARENTITEM = menuItem1;
- menuItem4.Select = false;
- menuItem4.Text = "调整svg内容";
- menuItem1.Sub.Add(menuItem2);
- menuItem1.Sub.Add(menuItem3);
- menuItem1.Sub.Add(menuItem4);
- menuItem1.Text = "SVG图标菜单";
- menuItem5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
- menuItem5.Icon = global::AntdUIDemo.Properties.Resources.关闭;
- menuItem5.PARENTITEM = null;
- menuItem5.Select = false;
- menuItem6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- menuItem6.PARENTITEM = menuItem5;
- menuItem6.Select = false;
- menuItem6.Text = "不能变色";
- menuItem7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- menuItem7.PARENTITEM = menuItem5;
- menuItem7.Select = false;
- menuItem7.Text = "不适合使用黑白";
- menuItem8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- menuItem8.PARENTITEM = menuItem5;
- menuItem8.Select = false;
- menuItem8.Text = "子菜单";
- menuItem5.Sub.Add(menuItem6);
- menuItem5.Sub.Add(menuItem7);
- menuItem5.Sub.Add(menuItem8);
- menuItem5.Text = "图片资源菜单";
- menuItem9.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
- menuItem9.IconSvg = resources.GetString("menuItem9.IconSvg");
- menuItem9.PARENTITEM = null;
- menuItem9.Select = false;
- menuItem10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- menuItem10.PARENTITEM = menuItem9;
- menuItem10.Select = false;
- menuItem10.Text = "二级菜单";
- menuItem11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- menuItem11.PARENTITEM = menuItem9;
- menuItem11.Select = false;
- menuItem11.Text = "二级菜单";
- menuItem12.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
- menuItem12.PARENTITEM = menuItem9;
- menuItem12.Select = false;
- menuItem12.Text = "二级菜单";
- menuItem9.Sub.Add(menuItem10);
- menuItem9.Sub.Add(menuItem11);
- menuItem9.Sub.Add(menuItem12);
- menuItem9.Text = "一级菜单";
- menuItem13.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
- menuItem13.IconSvg = resources.GetString("menuItem13.IconSvg");
- menuItem13.PARENTITEM = null;
- menuItem13.Select = false;
- menuItem13.Text = "一级菜单";
- menuItem14.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
- menuItem14.IconSvg = resources.GetString("menuItem14.IconSvg");
- menuItem14.PARENTITEM = null;
- menuItem14.Select = false;
- menuItem14.Text = "一级菜单";
- this.menu.Items.Add(menuItem1);
- this.menu.Items.Add(menuItem5);
- this.menu.Items.Add(menuItem9);
- this.menu.Items.Add(menuItem13);
- this.menu.Items.Add(menuItem14);
- this.menu.Location = new System.Drawing.Point(351, 3);
- this.menu.Name = "menu";
- this.menu.Size = new System.Drawing.Size(244, 492);
- this.menu.TabIndex = 3;
- this.menu.Text = "menu1";
+ this.tabs1.Centered = true;
+ this.tabs1.Cursor = System.Windows.Forms.Cursors.Default;
+ this.tabs1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.tabs1.Gap = 12;
+ this.tabs1.Location = new System.Drawing.Point(301, 3);
+ this.tabs1.Name = "tabs1";
+ this.tabs1.Pages.Add(this.tabPage1);
+ this.tabs1.Pages.Add(this.tabPage2);
+ this.tabs1.Pages.Add(this.tabPage3);
+ this.tabs1.SelectedIndex = 2;
+ this.tabs1.Size = new System.Drawing.Size(382, 420);
+ this.tabs1.Style = styleLine2;
+ this.tabs1.TabIndex = 3;
+ this.tabs1.Text = "tabs1";
+ //
+ // tabPage1
+ //
+ this.tabPage1.Controls.Add(this.menu_inline);
+ this.tabPage1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.tabPage1.Location = new System.Drawing.Point(3, 38);
+ this.tabPage1.Name = "tabPage1";
+ this.tabPage1.Padding = new System.Windows.Forms.Padding(9);
+ this.tabPage1.Size = new System.Drawing.Size(376, 379);
+ this.tabPage1.TabIndex = 0;
+ this.tabPage1.Text = "Inline";
+ //
+ // menu_inline
+ //
+ this.menu_inline.AutoCollapse = true;
+ this.menu_inline.Dock = System.Windows.Forms.DockStyle.Left;
+ this.menu_inline.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.menu_inline.Indent = true;
+ menuItem37.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem37.IconSvg = resources.GetString("menuItem37.IconSvg");
+ menuItem37.PARENTITEM = null;
+ menuItem37.Select = false;
+ menuItem38.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ menuItem38.PARENTITEM = menuItem37;
+ menuItem38.Select = false;
+ menuItem38.Text = "SVG可以变色";
+ menuItem39.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem39.PARENTITEM = menuItem37;
+ menuItem39.Select = false;
+ menuItem39.Text = "如果变不了";
+ menuItem40.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem40.PARENTITEM = menuItem37;
+ menuItem40.Select = false;
+ menuItem40.Text = "调整svg内容";
+ menuItem37.Sub.Add(menuItem38);
+ menuItem37.Sub.Add(menuItem39);
+ menuItem37.Sub.Add(menuItem40);
+ menuItem37.Text = "SVG图标菜单";
+ menuItem41.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem41.Icon = global::AntdUIDemo.Properties.Resources.关闭;
+ menuItem41.PARENTITEM = null;
+ menuItem41.Select = false;
+ menuItem42.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem42.PARENTITEM = menuItem41;
+ menuItem42.Select = false;
+ menuItem42.Text = "不能变色";
+ menuItem43.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem43.PARENTITEM = menuItem41;
+ menuItem43.Select = false;
+ menuItem43.Text = "不适合使用黑白";
+ menuItem44.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem44.PARENTITEM = menuItem41;
+ menuItem44.Select = false;
+ menuItem44.Text = "子菜单";
+ menuItem41.Sub.Add(menuItem42);
+ menuItem41.Sub.Add(menuItem43);
+ menuItem41.Sub.Add(menuItem44);
+ menuItem41.Text = "图片资源菜单";
+ menuItem45.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem45.IconSvg = resources.GetString("menuItem45.IconSvg");
+ menuItem45.PARENTITEM = null;
+ menuItem45.Select = false;
+ menuItem46.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ menuItem46.PARENTITEM = menuItem45;
+ menuItem46.Select = false;
+ menuItem46.Text = "二级菜单";
+ menuItem47.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem47.PARENTITEM = menuItem45;
+ menuItem47.Select = false;
+ menuItem47.Text = "二级菜单";
+ menuItem48.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem48.PARENTITEM = menuItem45;
+ menuItem48.Select = false;
+ menuItem48.Text = "二级菜单";
+ menuItem45.Sub.Add(menuItem46);
+ menuItem45.Sub.Add(menuItem47);
+ menuItem45.Sub.Add(menuItem48);
+ menuItem45.Text = "一级菜单";
+ this.menu_inline.Items.Add(menuItem37);
+ this.menu_inline.Items.Add(menuItem41);
+ this.menu_inline.Items.Add(menuItem45);
+ this.menu_inline.Location = new System.Drawing.Point(9, 9);
+ this.menu_inline.Name = "menu_inline";
+ this.menu_inline.Size = new System.Drawing.Size(220, 361);
+ this.menu_inline.TabIndex = 4;
+ this.menu_inline.Text = "menu1";
+ //
+ // tabPage2
+ //
+ this.tabPage2.Controls.Add(this.menu_vertical);
+ this.tabPage2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.tabPage2.Location = new System.Drawing.Point(3, 38);
+ this.tabPage2.Name = "tabPage2";
+ this.tabPage2.Padding = new System.Windows.Forms.Padding(9);
+ this.tabPage2.Size = new System.Drawing.Size(376, 379);
+ this.tabPage2.TabIndex = 0;
+ this.tabPage2.Text = "Vertical";
+ //
+ // menu_vertical
+ //
+ this.menu_vertical.AutoCollapse = true;
+ this.menu_vertical.Dock = System.Windows.Forms.DockStyle.Left;
+ this.menu_vertical.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.menu_vertical.Indent = true;
+ menuItem49.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem49.IconSvg = resources.GetString("menuItem49.IconSvg");
+ menuItem49.PARENTITEM = null;
+ menuItem49.Select = false;
+ menuItem50.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ menuItem50.PARENTITEM = menuItem49;
+ menuItem50.Select = false;
+ menuItem50.Text = "SVG可以变色";
+ menuItem51.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem51.PARENTITEM = menuItem49;
+ menuItem51.Select = false;
+ menuItem51.Text = "如果变不了";
+ menuItem52.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem52.PARENTITEM = menuItem49;
+ menuItem52.Select = false;
+ menuItem52.Text = "调整svg内容";
+ menuItem49.Sub.Add(menuItem50);
+ menuItem49.Sub.Add(menuItem51);
+ menuItem49.Sub.Add(menuItem52);
+ menuItem49.Text = "SVG图标菜单";
+ menuItem53.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem53.Icon = global::AntdUIDemo.Properties.Resources.关闭;
+ menuItem53.PARENTITEM = null;
+ menuItem53.Select = false;
+ menuItem54.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem54.PARENTITEM = menuItem53;
+ menuItem54.Select = false;
+ menuItem54.Text = "不能变色";
+ menuItem55.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem55.PARENTITEM = menuItem53;
+ menuItem55.Select = false;
+ menuItem55.Text = "不适合使用黑白";
+ menuItem56.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem56.PARENTITEM = menuItem53;
+ menuItem56.Select = false;
+ menuItem56.Text = "子菜单";
+ menuItem53.Sub.Add(menuItem54);
+ menuItem53.Sub.Add(menuItem55);
+ menuItem53.Sub.Add(menuItem56);
+ menuItem53.Text = "图片资源菜单";
+ menuItem57.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem57.IconSvg = resources.GetString("menuItem57.IconSvg");
+ menuItem57.PARENTITEM = null;
+ menuItem57.Select = false;
+ menuItem58.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ menuItem58.PARENTITEM = menuItem57;
+ menuItem58.Select = false;
+ menuItem58.Text = "二级菜单";
+ menuItem59.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem59.PARENTITEM = menuItem57;
+ menuItem59.Select = false;
+ menuItem59.Text = "二级菜单";
+ menuItem60.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
+ menuItem60.PARENTITEM = menuItem57;
+ menuItem60.Select = false;
+ menuItem60.Text = "二级菜单";
+ menuItem57.Sub.Add(menuItem58);
+ menuItem57.Sub.Add(menuItem59);
+ menuItem57.Sub.Add(menuItem60);
+ menuItem57.Text = "一级菜单";
+ this.menu_vertical.Items.Add(menuItem49);
+ this.menu_vertical.Items.Add(menuItem53);
+ this.menu_vertical.Items.Add(menuItem57);
+ this.menu_vertical.Location = new System.Drawing.Point(9, 9);
+ this.menu_vertical.Mode = AntdUI.TMenuMode.Vertical;
+ this.menu_vertical.Name = "menu_vertical";
+ this.menu_vertical.Size = new System.Drawing.Size(220, 361);
+ this.menu_vertical.TabIndex = 5;
+ this.menu_vertical.Text = "menu1";
+ //
+ // tabPage3
+ //
+ this.tabPage3.Controls.Add(this.menu_horizontal);
+ this.tabPage3.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.tabPage3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.tabPage3.Location = new System.Drawing.Point(3, 38);
+ this.tabPage3.Name = "tabPage3";
+ this.tabPage3.Padding = new System.Windows.Forms.Padding(9);
+ this.tabPage3.Size = new System.Drawing.Size(376, 379);
+ this.tabPage3.TabIndex = 0;
+ this.tabPage3.Text = "Horizontal";
+ //
+ // menu_horizontal
+ //
+ this.menu_horizontal.AutoCollapse = true;
+ this.menu_horizontal.Dock = System.Windows.Forms.DockStyle.Top;
+ this.menu_horizontal.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.menu_horizontal.Indent = true;
+ menuItem61.IconSvg = resources.GetString("menuItem61.IconSvg");
+ menuItem61.PARENTITEM = null;
+ menuItem61.Select = false;
+ menuItem62.PARENTITEM = null;
+ menuItem62.Select = false;
+ menuItem62.Text = "SVG可以变色";
+ menuItem63.PARENTITEM = null;
+ menuItem63.Select = false;
+ menuItem63.Text = "如果变不了";
+ menuItem64.PARENTITEM = null;
+ menuItem64.Select = false;
+ menuItem64.Text = "调整svg内容";
+ menuItem61.Sub.Add(menuItem62);
+ menuItem61.Sub.Add(menuItem63);
+ menuItem61.Sub.Add(menuItem64);
+ menuItem61.Text = "SVG图标菜单";
+ menuItem65.Icon = global::AntdUIDemo.Properties.Resources.关闭;
+ menuItem65.PARENTITEM = null;
+ menuItem65.Select = false;
+ menuItem66.PARENTITEM = null;
+ menuItem66.Select = false;
+ menuItem66.Text = "不能变色";
+ menuItem67.PARENTITEM = null;
+ menuItem67.Select = false;
+ menuItem67.Text = "不适合使用黑白";
+ menuItem68.PARENTITEM = null;
+ menuItem68.Select = false;
+ menuItem68.Text = "二级菜单";
+ menuItem65.Sub.Add(menuItem66);
+ menuItem65.Sub.Add(menuItem67);
+ menuItem65.Sub.Add(menuItem68);
+ menuItem65.Text = "图片资源菜单";
+ menuItem69.IconSvg = resources.GetString("menuItem69.IconSvg");
+ menuItem69.PARENTITEM = null;
+ menuItem69.Select = false;
+ menuItem70.PARENTITEM = null;
+ menuItem70.Select = false;
+ menuItem70.Text = "二级菜单";
+ menuItem71.PARENTITEM = null;
+ menuItem71.Select = false;
+ menuItem71.Text = "二级菜单";
+ menuItem72.PARENTITEM = null;
+ menuItem72.Select = false;
+ menuItem72.Text = "二级菜单";
+ menuItem69.Sub.Add(menuItem70);
+ menuItem69.Sub.Add(menuItem71);
+ menuItem69.Sub.Add(menuItem72);
+ menuItem69.Text = "一级菜单";
+ this.menu_horizontal.Items.Add(menuItem61);
+ this.menu_horizontal.Items.Add(menuItem65);
+ this.menu_horizontal.Items.Add(menuItem69);
+ this.menu_horizontal.Location = new System.Drawing.Point(9, 9);
+ this.menu_horizontal.Mode = AntdUI.TMenuMode.Horizontal;
+ this.menu_horizontal.Name = "menu_horizontal";
+ this.menu_horizontal.Size = new System.Drawing.Size(358, 35);
+ this.menu_horizontal.TabIndex = 5;
+ this.menu_horizontal.Text = "menu1";
//
// divider2
//
- this.divider2.Location = new System.Drawing.Point(321, 3);
+ this.divider2.Location = new System.Drawing.Point(271, 3);
this.divider2.Name = "divider2";
- this.divider2.Size = new System.Drawing.Size(24, 492);
+ this.divider2.Size = new System.Drawing.Size(24, 420);
this.divider2.TabIndex = 2;
this.divider2.Vertical = true;
//
@@ -257,13 +442,11 @@
this.stackPanel3.Controls.Add(this.stackPanel10);
this.stackPanel3.Controls.Add(this.stackPanel9);
this.stackPanel3.Controls.Add(this.stackPanel8);
- this.stackPanel3.Controls.Add(this.stackPanel7);
this.stackPanel3.Controls.Add(this.stackPanel6);
this.stackPanel3.Controls.Add(this.stackPanel5);
- this.stackPanel3.Controls.Add(this.stackPanel4);
this.stackPanel3.Location = new System.Drawing.Point(3, 3);
this.stackPanel3.Name = "stackPanel3";
- this.stackPanel3.Size = new System.Drawing.Size(312, 492);
+ this.stackPanel3.Size = new System.Drawing.Size(262, 420);
this.stackPanel3.TabIndex = 0;
this.stackPanel3.Text = "stackPanel3";
this.stackPanel3.Vertical = true;
@@ -271,9 +454,9 @@
// buttonCZ
//
this.buttonCZ.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.buttonCZ.Location = new System.Drawing.Point(3, 459);
+ this.buttonCZ.Location = new System.Drawing.Point(3, 383);
this.buttonCZ.Name = "buttonCZ";
- this.buttonCZ.Size = new System.Drawing.Size(306, 32);
+ this.buttonCZ.Size = new System.Drawing.Size(256, 32);
this.buttonCZ.TabIndex = 45;
this.buttonCZ.Text = "重 置";
this.buttonCZ.Type = AntdUI.TTypeMini.Warn;
@@ -283,9 +466,9 @@
//
this.stackPanel14.Controls.Add(this.colorPicker_backactive);
this.stackPanel14.Controls.Add(this.label13);
- this.stackPanel14.Location = new System.Drawing.Point(3, 421);
+ this.stackPanel14.Location = new System.Drawing.Point(3, 345);
this.stackPanel14.Name = "stackPanel14";
- this.stackPanel14.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel14.Size = new System.Drawing.Size(256, 32);
this.stackPanel14.TabIndex = 44;
this.stackPanel14.Text = "stackPanel14";
//
@@ -293,7 +476,7 @@
//
this.colorPicker_backactive.Location = new System.Drawing.Point(129, 3);
this.colorPicker_backactive.Name = "colorPicker_backactive";
- this.colorPicker_backactive.Size = new System.Drawing.Size(175, 26);
+ this.colorPicker_backactive.Size = new System.Drawing.Size(120, 26);
this.colorPicker_backactive.TabIndex = 5;
this.colorPicker_backactive.Text = "colorPicker3";
this.colorPicker_backactive.WaveSize = 0;
@@ -311,9 +494,9 @@
//
this.stackPanel13.Controls.Add(this.colorPicker_backhover);
this.stackPanel13.Controls.Add(this.label12);
- this.stackPanel13.Location = new System.Drawing.Point(3, 383);
+ this.stackPanel13.Location = new System.Drawing.Point(3, 307);
this.stackPanel13.Name = "stackPanel13";
- this.stackPanel13.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel13.Size = new System.Drawing.Size(256, 32);
this.stackPanel13.TabIndex = 43;
this.stackPanel13.Text = "stackPanel13";
//
@@ -321,7 +504,7 @@
//
this.colorPicker_backhover.Location = new System.Drawing.Point(129, 3);
this.colorPicker_backhover.Name = "colorPicker_backhover";
- this.colorPicker_backhover.Size = new System.Drawing.Size(175, 26);
+ this.colorPicker_backhover.Size = new System.Drawing.Size(120, 26);
this.colorPicker_backhover.TabIndex = 5;
this.colorPicker_backhover.Text = "colorPicker2";
this.colorPicker_backhover.WaveSize = 0;
@@ -339,9 +522,9 @@
//
this.stackPanel16.Controls.Add(this.colorPicker_foreactive);
this.stackPanel16.Controls.Add(this.label14);
- this.stackPanel16.Location = new System.Drawing.Point(3, 345);
+ this.stackPanel16.Location = new System.Drawing.Point(3, 269);
this.stackPanel16.Name = "stackPanel16";
- this.stackPanel16.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel16.Size = new System.Drawing.Size(256, 32);
this.stackPanel16.TabIndex = 42;
this.stackPanel16.Text = "stackPanel16";
//
@@ -349,7 +532,7 @@
//
this.colorPicker_foreactive.Location = new System.Drawing.Point(129, 3);
this.colorPicker_foreactive.Name = "colorPicker_foreactive";
- this.colorPicker_foreactive.Size = new System.Drawing.Size(175, 26);
+ this.colorPicker_foreactive.Size = new System.Drawing.Size(120, 26);
this.colorPicker_foreactive.TabIndex = 5;
this.colorPicker_foreactive.Text = "colorPicker1";
this.colorPicker_foreactive.WaveSize = 0;
@@ -367,9 +550,9 @@
//
this.stackPanel12.Controls.Add(this.colorPicker_forecolor);
this.stackPanel12.Controls.Add(this.label11);
- this.stackPanel12.Location = new System.Drawing.Point(3, 307);
+ this.stackPanel12.Location = new System.Drawing.Point(3, 231);
this.stackPanel12.Name = "stackPanel12";
- this.stackPanel12.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel12.Size = new System.Drawing.Size(256, 32);
this.stackPanel12.TabIndex = 41;
this.stackPanel12.Text = "stackPanel12";
//
@@ -377,7 +560,7 @@
//
this.colorPicker_forecolor.Location = new System.Drawing.Point(129, 3);
this.colorPicker_forecolor.Name = "colorPicker_forecolor";
- this.colorPicker_forecolor.Size = new System.Drawing.Size(175, 26);
+ this.colorPicker_forecolor.Size = new System.Drawing.Size(120, 26);
this.colorPicker_forecolor.TabIndex = 5;
this.colorPicker_forecolor.Text = "colorPicker1";
this.colorPicker_forecolor.WaveSize = 0;
@@ -395,9 +578,9 @@
//
this.stackPanel11.Controls.Add(this.select_unique);
this.stackPanel11.Controls.Add(this.label9);
- this.stackPanel11.Location = new System.Drawing.Point(3, 269);
+ this.stackPanel11.Location = new System.Drawing.Point(3, 193);
this.stackPanel11.Name = "stackPanel11";
- this.stackPanel11.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel11.Size = new System.Drawing.Size(256, 32);
this.stackPanel11.TabIndex = 17;
this.stackPanel11.Text = "stackPanel11";
//
@@ -412,7 +595,7 @@
this.select_unique.Name = "select_unique";
this.select_unique.SelectedIndex = 1;
this.select_unique.SelectedValue = "False";
- this.select_unique.Size = new System.Drawing.Size(175, 26);
+ this.select_unique.Size = new System.Drawing.Size(120, 26);
this.select_unique.TabIndex = 11;
this.select_unique.Text = "False";
this.select_unique.WaveSize = 0;
@@ -430,9 +613,9 @@
//
this.stackPanel10.Controls.Add(this.select_showsubback);
this.stackPanel10.Controls.Add(this.label8);
- this.stackPanel10.Location = new System.Drawing.Point(3, 231);
+ this.stackPanel10.Location = new System.Drawing.Point(3, 155);
this.stackPanel10.Name = "stackPanel10";
- this.stackPanel10.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel10.Size = new System.Drawing.Size(256, 32);
this.stackPanel10.TabIndex = 16;
this.stackPanel10.Text = "stackPanel10";
//
@@ -447,7 +630,7 @@
this.select_showsubback.Name = "select_showsubback";
this.select_showsubback.SelectedIndex = 1;
this.select_showsubback.SelectedValue = "False";
- this.select_showsubback.Size = new System.Drawing.Size(175, 26);
+ this.select_showsubback.Size = new System.Drawing.Size(120, 26);
this.select_showsubback.TabIndex = 11;
this.select_showsubback.Text = "False";
this.select_showsubback.WaveSize = 0;
@@ -465,9 +648,9 @@
//
this.stackPanel9.Controls.Add(this.select_round);
this.stackPanel9.Controls.Add(this.label7);
- this.stackPanel9.Location = new System.Drawing.Point(3, 193);
+ this.stackPanel9.Location = new System.Drawing.Point(3, 117);
this.stackPanel9.Name = "stackPanel9";
- this.stackPanel9.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel9.Size = new System.Drawing.Size(256, 32);
this.stackPanel9.TabIndex = 15;
this.stackPanel9.Text = "stackPanel9";
//
@@ -482,7 +665,7 @@
this.select_round.Name = "select_round";
this.select_round.SelectedIndex = 1;
this.select_round.SelectedValue = "False";
- this.select_round.Size = new System.Drawing.Size(175, 26);
+ this.select_round.Size = new System.Drawing.Size(120, 26);
this.select_round.TabIndex = 11;
this.select_round.Text = "False";
this.select_round.WaveSize = 0;
@@ -500,9 +683,9 @@
//
this.stackPanel8.Controls.Add(this.input_radius);
this.stackPanel8.Controls.Add(this.label6);
- this.stackPanel8.Location = new System.Drawing.Point(3, 155);
+ this.stackPanel8.Location = new System.Drawing.Point(3, 79);
this.stackPanel8.Name = "stackPanel8";
- this.stackPanel8.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel8.Size = new System.Drawing.Size(256, 32);
this.stackPanel8.TabIndex = 14;
this.stackPanel8.Text = "stackPanel8";
//
@@ -511,7 +694,7 @@
this.input_radius.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.input_radius.Location = new System.Drawing.Point(129, 3);
this.input_radius.Name = "input_radius";
- this.input_radius.Size = new System.Drawing.Size(175, 26);
+ this.input_radius.Size = new System.Drawing.Size(120, 26);
this.input_radius.TabIndex = 5;
this.input_radius.Text = "6";
this.input_radius.Value = new decimal(new int[] {
@@ -530,42 +713,13 @@
this.label6.TabIndex = 4;
this.label6.Text = "Radius";
//
- // stackPanel7
- //
- this.stackPanel7.Controls.Add(this.select_mode);
- this.stackPanel7.Controls.Add(this.label5);
- this.stackPanel7.Location = new System.Drawing.Point(3, 117);
- this.stackPanel7.Name = "stackPanel7";
- this.stackPanel7.Size = new System.Drawing.Size(306, 32);
- this.stackPanel7.TabIndex = 13;
- this.stackPanel7.Text = "stackPanel7";
- //
- // select_mode
- //
- this.select_mode.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.select_mode.List = true;
- this.select_mode.Location = new System.Drawing.Point(129, 3);
- this.select_mode.Name = "select_mode";
- this.select_mode.Size = new System.Drawing.Size(175, 26);
- this.select_mode.TabIndex = 11;
- this.select_mode.WaveSize = 0;
- //
- // label5
- //
- this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label5.Location = new System.Drawing.Point(3, 3);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(120, 26);
- this.label5.TabIndex = 4;
- this.label5.Text = "Mode";
- //
// stackPanel6
//
this.stackPanel6.Controls.Add(this.select_indent);
this.stackPanel6.Controls.Add(this.label4);
- this.stackPanel6.Location = new System.Drawing.Point(3, 79);
+ this.stackPanel6.Location = new System.Drawing.Point(3, 41);
this.stackPanel6.Name = "stackPanel6";
- this.stackPanel6.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel6.Size = new System.Drawing.Size(256, 32);
this.stackPanel6.TabIndex = 12;
this.stackPanel6.Text = "stackPanel6";
//
@@ -578,11 +732,11 @@
this.select_indent.List = true;
this.select_indent.Location = new System.Drawing.Point(129, 3);
this.select_indent.Name = "select_indent";
- this.select_indent.SelectedIndex = 1;
- this.select_indent.SelectedValue = "False";
- this.select_indent.Size = new System.Drawing.Size(175, 26);
+ this.select_indent.SelectedIndex = 0;
+ this.select_indent.SelectedValue = "True";
+ this.select_indent.Size = new System.Drawing.Size(120, 26);
this.select_indent.TabIndex = 11;
- this.select_indent.Text = "False";
+ this.select_indent.Text = "True";
this.select_indent.WaveSize = 0;
//
// label4
@@ -598,9 +752,9 @@
//
this.stackPanel5.Controls.Add(this.select_collapsed);
this.stackPanel5.Controls.Add(this.label3);
- this.stackPanel5.Location = new System.Drawing.Point(3, 41);
+ this.stackPanel5.Location = new System.Drawing.Point(3, 3);
this.stackPanel5.Name = "stackPanel5";
- this.stackPanel5.Size = new System.Drawing.Size(306, 32);
+ this.stackPanel5.Size = new System.Drawing.Size(256, 32);
this.stackPanel5.TabIndex = 11;
this.stackPanel5.Text = "stackPanel5";
//
@@ -615,7 +769,7 @@
this.select_collapsed.Name = "select_collapsed";
this.select_collapsed.SelectedIndex = 1;
this.select_collapsed.SelectedValue = "False";
- this.select_collapsed.Size = new System.Drawing.Size(175, 26);
+ this.select_collapsed.Size = new System.Drawing.Size(120, 26);
this.select_collapsed.TabIndex = 11;
this.select_collapsed.Text = "False";
this.select_collapsed.WaveSize = 0;
@@ -629,40 +783,30 @@
this.label3.TabIndex = 4;
this.label3.Text = "Collapsed";
//
- // stackPanel4
+ // divider1
//
- this.stackPanel4.Controls.Add(this.select_autocollapse);
- this.stackPanel4.Controls.Add(this.label10);
- this.stackPanel4.Location = new System.Drawing.Point(3, 3);
- this.stackPanel4.Name = "stackPanel4";
- this.stackPanel4.Size = new System.Drawing.Size(306, 32);
- this.stackPanel4.TabIndex = 10;
- this.stackPanel4.Text = "stackPanel4";
+ this.divider1.Location = new System.Drawing.Point(3, 79);
+ this.divider1.Name = "divider1";
+ this.divider1.Size = new System.Drawing.Size(694, 2);
+ this.divider1.TabIndex = 4;
//
- // select_autocollapse
+ // label2
//
- this.select_autocollapse.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.select_autocollapse.Items.AddRange(new object[] {
- "True",
- "False"});
- this.select_autocollapse.List = true;
- this.select_autocollapse.Location = new System.Drawing.Point(129, 3);
- this.select_autocollapse.Name = "select_autocollapse";
- this.select_autocollapse.SelectedIndex = 1;
- this.select_autocollapse.SelectedValue = "False";
- this.select_autocollapse.Size = new System.Drawing.Size(175, 26);
- this.select_autocollapse.TabIndex = 11;
- this.select_autocollapse.Text = "False";
- this.select_autocollapse.WaveSize = 0;
+ this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.Location = new System.Drawing.Point(3, 49);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(694, 24);
+ this.label2.TabIndex = 3;
+ this.label2.Text = "为页面和功能提供导航的菜单列表。";
//
- // label10
+ // label1
//
- this.label10.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.label10.Location = new System.Drawing.Point(3, 3);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(120, 26);
- this.label10.TabIndex = 4;
- this.label10.Text = "AutoCollapse";
+ this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label1.Location = new System.Drawing.Point(3, 3);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(694, 40);
+ this.label1.TabIndex = 2;
+ this.label1.Text = "Menu 导航菜单";
//
// MenuDemo
//
@@ -672,6 +816,10 @@
this.Size = new System.Drawing.Size(700, 585);
this.stackPanel1.ResumeLayout(false);
this.stackPanel2.ResumeLayout(false);
+ this.tabs1.ResumeLayout(false);
+ this.tabPage1.ResumeLayout(false);
+ this.tabPage2.ResumeLayout(false);
+ this.tabPage3.ResumeLayout(false);
this.stackPanel3.ResumeLayout(false);
this.stackPanel14.ResumeLayout(false);
this.stackPanel13.ResumeLayout(false);
@@ -681,10 +829,8 @@
this.stackPanel10.ResumeLayout(false);
this.stackPanel9.ResumeLayout(false);
this.stackPanel8.ResumeLayout(false);
- this.stackPanel7.ResumeLayout(false);
this.stackPanel6.ResumeLayout(false);
this.stackPanel5.ResumeLayout(false);
- this.stackPanel4.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -695,7 +841,6 @@
private AntdUI.Label label1;
private AntdUI.Label label2;
private AntdUI.StackPanel stackPanel2;
- private AntdUI.Menu menu;
private AntdUI.Divider divider2;
private AntdUI.StackPanel stackPanel3;
private AntdUI.Button buttonCZ;
@@ -723,18 +868,19 @@
private AntdUI.StackPanel stackPanel8;
private AntdUI.InputNumber input_radius;
private AntdUI.Label label6;
- private AntdUI.StackPanel stackPanel7;
- private AntdUI.Select select_mode;
- private AntdUI.Label label5;
private AntdUI.StackPanel stackPanel6;
private AntdUI.Select select_indent;
private AntdUI.Label label4;
private AntdUI.StackPanel stackPanel5;
private AntdUI.Select select_collapsed;
private AntdUI.Label label3;
- private AntdUI.StackPanel stackPanel4;
- private AntdUI.Select select_autocollapse;
- private AntdUI.Label label10;
private AntdUI.Divider divider1;
+ private AntdUI.Tabs tabs1;
+ private AntdUI.TabPage tabPage1;
+ private AntdUI.Menu menu_inline;
+ private AntdUI.TabPage tabPage2;
+ private AntdUI.TabPage tabPage3;
+ private AntdUI.Menu menu_vertical;
+ private AntdUI.Menu menu_horizontal;
}
}
diff --git a/Views/MenuDemo.cs b/Views/MenuDemo.cs
index 3c4b145..41a1a9d 100644
--- a/Views/MenuDemo.cs
+++ b/Views/MenuDemo.cs
@@ -1,4 +1,5 @@
using AntdUI;
+using AntdUIDemo.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -16,8 +17,6 @@ namespace AntdUIDemo.Views
public MenuDemo()
{
InitializeComponent();
- //初始化下拉框
- InitSelectItems();
//设置默认值
InitData();
// 绑定事件
@@ -26,12 +25,36 @@ namespace AntdUIDemo.Views
private void BindEventHandler()
{
- select_autocollapse.SelectedIndexChanged += select_intvalue_SelectedIndexChanged;
select_collapsed.SelectedIndexChanged += select_intvalue_SelectedIndexChanged;
select_indent.SelectedIndexChanged += select_intvalue_SelectedIndexChanged;
select_round.SelectedIndexChanged += select_intvalue_SelectedIndexChanged;
select_showsubback.SelectedIndexChanged += select_intvalue_SelectedIndexChanged;
select_unique.SelectedIndexChanged += select_intvalue_SelectedIndexChanged;
+
+ input_radius.ValueChanged += Input_decimal_ValueChanged;
+
+ colorPicker_forecolor.ValueChanged += ColorPicker_ValueChanged;
+ colorPicker_foreactive.ValueChanged += ColorPicker_ValueChanged;
+ colorPicker_backhover.ValueChanged += ColorPicker_ValueChanged;
+ colorPicker_backactive.ValueChanged += ColorPicker_ValueChanged;
+
+ buttonCZ.Click += ButtonCZ_Click;
+ }
+
+ private void ButtonCZ_Click(object sender, EventArgs e)
+ {
+ InitData();
+ LoadMenu();
+ }
+
+ private void ColorPicker_ValueChanged(object sender, Color value)
+ {
+ LoadMenu();
+ }
+
+ private void Input_decimal_ValueChanged(object sender, decimal value)
+ {
+ LoadMenu();
}
private void select_intvalue_SelectedIndexChanged(object sender, int value)
@@ -41,34 +64,42 @@ namespace AntdUIDemo.Views
private void InitData()
{
- select_mode.SelectedIndex = 0;
- }
+ select_collapsed.SelectedIndex = 1;
+ select_indent.SelectedIndex = 0;
+ select_round.SelectedIndex = 1;
+ select_showsubback.SelectedIndex = 1;
+ select_unique.SelectedIndex = 1;
- private void InitSelectItems()
- {
- //初始化菜单类型
- //select_align.Items.Clear();
- //foreach (TAlignFlow align in Enum.GetValues(typeof(TAlignFlow)))
- //{
- // select_align.Items.Add(align);
- //}
+ input_radius.Value = 6;
- select_mode.Items.Clear();
- foreach(TMenuMode menuMode in Enum.GetValues(typeof(TMenuMode)))
- {
- select_mode.Items.Add(menuMode);
- }
+ colorPicker_forecolor.Value = Color.Transparent;
+ colorPicker_foreactive.Value = Color.Transparent;
+ colorPicker_backhover.Value = Color.Transparent;
+ colorPicker_backactive.Value = Color.Transparent;
}
private void LoadMenu()
{
- menu.AutoCollapse = select_autocollapse.SelectedIndex == 0;
+ ApplyMenuSettings(menu_inline);
+ ApplyMenuSettings(menu_vertical);
+ ApplyMenuSettings(menu_horizontal);
+ }
+
+ private void ApplyMenuSettings(AntdUI.Menu menu)
+ {
menu.Collapsed = select_collapsed.SelectedIndex == 0;
menu.Indent = select_indent.SelectedIndex == 0;
menu.Round = select_round.SelectedIndex == 0;
menu.ShowSubBack = select_showsubback.SelectedIndex == 0;
menu.Unique = select_unique.SelectedIndex == 0;
- menu.Invalidate();
+
+ menu.Radius = (int)input_radius.Value;
+
+ menu.ForeColor = colorPicker_forecolor.Value == Color.Transparent ? null : colorPicker_forecolor.Value;
+ menu.ForeActive = colorPicker_foreactive.Value == Color.Transparent ? null : colorPicker_foreactive.Value;
+ menu.BackHover = colorPicker_backhover.Value == Color.Transparent ? null : colorPicker_backhover.Value;
+ menu.BackActive = colorPicker_backactive.Value == Color.Transparent ? null : colorPicker_backactive.Value;
}
+
}
}
diff --git a/Views/MenuDemo.resx b/Views/MenuDemo.resx
index 9924f98..2bebb9e 100644
--- a/Views/MenuDemo.resx
+++ b/Views/MenuDemo.resx
@@ -117,16 +117,22 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
<svg t="1724229402123" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7948" width="200" height="200"><path d="M911.945421 306.603008l-62.497894 36.07767c-17.62304 10.177843-40.14592 4.144435-50.315981-13.476966-10.177229-17.622323-4.143514-40.145306 13.469286-50.324173l62.422221-36.033638c-30.075187-43.229594-67.660698-80.808448-110.886912-110.890598l-36.04951 62.414541c-10.171085 17.621299-32.692941 23.654707-50.315981 13.486182-17.625088-10.177843-23.656755-32.700723-13.479526-50.322125L700.379443 95.037542c-46.631936-22.00105-97.723597-36.02135-151.551693-40.466637l0 72.03564c0 20.337152-16.480973 36.835942-36.837478 36.835942-20.336947 0-36.836454-16.49879-36.836454-36.835942L475.153818 54.56985c-53.817856 4.44631-104.912589 18.465587-151.533261 40.461517l36.089344 62.502502c10.170061 17.622323 4.134298 40.144282-13.488742 50.322125-17.611776 10.168627-40.14592 4.135219-50.325197-13.486182l-36.032102-62.414541c-43.23543 30.08215-80.811725 67.666125-110.89408 110.890598l62.410957 36.033638c17.624064 10.178867 23.656755 32.702771 13.488742 50.324173-10.170061 17.621299-32.703181 23.655731-50.327245 13.476966l-62.497894-36.071526c-26.967245 57.152717-42.104627 120.981402-42.104627 188.367155 0 244.134298 197.907354 442.041651 442.05056 442.041651 244.153446 0 442.066944-197.905408 442.066944-442.041651C954.05824 427.586458 938.919834 363.755725 911.945421 306.603008zM767.225549 642.319053c-81.385882 140.943053-261.623091 189.244109-402.584166 107.86775-140.962099-81.382502-189.253939-261.618483-107.864986-402.564608 81.37769-140.946125 261.624115-189.245133 402.584166-107.869798C800.302285 321.13705 848.603238 501.372928 767.225549 642.319053zM667.258778 305.542861 562.319565 482.312909c-10.170061 17.611059-32.694989 23.654707-50.325197 13.487206-17.6128-10.178867-23.655731-32.710963-13.478502-50.324173L603.857306 268.040704c-28.383539-11.459994-59.370598-17.823949-91.862938-17.823949-135.626342 0-245.582029 109.951181-245.582029 245.583258 0 135.619789 109.955686 245.571994 245.582029 245.571994 135.644774 0 245.593293-109.950157 245.593293-245.571994C757.587661 419.071488 722.381414 350.581658 667.258778 305.542861z" p-id="7949"></path></svg>
-
+
<svg t="1724229420898" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8098" width="200" height="200"><path d="M892.928 128q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0zM892.928 448.512q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0zM892.928 769.024q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0z" p-id="8099"></path></svg>
-
- <svg t="1724229436634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8248" width="200" height="200"><path d="M533.504 268.288q33.792-41.984 71.68-75.776 32.768-27.648 74.24-50.176t86.528-19.456q63.488 5.12 105.984 30.208t67.584 63.488 34.304 87.04 6.144 99.84-17.92 97.792-36.864 87.04-48.64 74.752-53.248 61.952q-40.96 41.984-85.504 78.336t-84.992 62.464-73.728 41.472-51.712 15.36q-20.48 1.024-52.224-14.336t-69.632-41.472-79.872-61.952-82.944-75.776q-26.624-25.6-57.344-59.392t-57.856-74.24-46.592-87.552-21.504-100.352 11.264-99.84 39.936-83.456 65.536-61.952 88.064-35.328q24.576-5.12 49.152-1.536t48.128 12.288 45.056 22.016 40.96 27.648q45.056 33.792 86.016 80.896z" p-id="8249"></path></svg>
+
+ <svg t="1724229402123" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7948" width="200" height="200"><path d="M911.945421 306.603008l-62.497894 36.07767c-17.62304 10.177843-40.14592 4.144435-50.315981-13.476966-10.177229-17.622323-4.143514-40.145306 13.469286-50.324173l62.422221-36.033638c-30.075187-43.229594-67.660698-80.808448-110.886912-110.890598l-36.04951 62.414541c-10.171085 17.621299-32.692941 23.654707-50.315981 13.486182-17.625088-10.177843-23.656755-32.700723-13.479526-50.322125L700.379443 95.037542c-46.631936-22.00105-97.723597-36.02135-151.551693-40.466637l0 72.03564c0 20.337152-16.480973 36.835942-36.837478 36.835942-20.336947 0-36.836454-16.49879-36.836454-36.835942L475.153818 54.56985c-53.817856 4.44631-104.912589 18.465587-151.533261 40.461517l36.089344 62.502502c10.170061 17.622323 4.134298 40.144282-13.488742 50.322125-17.611776 10.168627-40.14592 4.135219-50.325197-13.486182l-36.032102-62.414541c-43.23543 30.08215-80.811725 67.666125-110.89408 110.890598l62.410957 36.033638c17.624064 10.178867 23.656755 32.702771 13.488742 50.324173-10.170061 17.621299-32.703181 23.655731-50.327245 13.476966l-62.497894-36.071526c-26.967245 57.152717-42.104627 120.981402-42.104627 188.367155 0 244.134298 197.907354 442.041651 442.05056 442.041651 244.153446 0 442.066944-197.905408 442.066944-442.041651C954.05824 427.586458 938.919834 363.755725 911.945421 306.603008zM767.225549 642.319053c-81.385882 140.943053-261.623091 189.244109-402.584166 107.86775-140.962099-81.382502-189.253939-261.618483-107.864986-402.564608 81.37769-140.946125 261.624115-189.245133 402.584166-107.869798C800.302285 321.13705 848.603238 501.372928 767.225549 642.319053zM667.258778 305.542861 562.319565 482.312909c-10.170061 17.611059-32.694989 23.654707-50.325197 13.487206-17.6128-10.178867-23.655731-32.710963-13.478502-50.324173L603.857306 268.040704c-28.383539-11.459994-59.370598-17.823949-91.862938-17.823949-135.626342 0-245.582029 109.951181-245.582029 245.583258 0 135.619789 109.955686 245.571994 245.582029 245.571994 135.644774 0 245.593293-109.950157 245.593293-245.571994C757.587661 419.071488 722.381414 350.581658 667.258778 305.542861z" p-id="7949"></path></svg>
-
- <svg t="1724229504670" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8552" width="200" height="200"><path d="M193.536 915.456l473.088 0 0 52.224q0 20.48-15.36 38.4t-45.056 17.92l-351.232 0q-26.624 0-44.032-16.384t-17.408-39.936l0-52.224zM829.44 488.448q34.816 0 67.584 4.608t55.296 19.968 32.256 44.032 0.512 77.824q-10.24 51.2-30.208 77.824t-46.08 38.4-56.32 11.776-61.952-2.048q-11.264 18.432-25.6 33.28t-30.72 28.672-33.28 28.672-34.304 33.28l-473.088 0q-22.528-31.744-50.176-53.248t-51.2-49.664-39.936-72.192-16.384-119.808l0-107.52q0-20.48 7.168-30.72t16.384-15.36q11.264-5.12 24.576-7.168l697.344 0q12.288 2.048 23.552 7.168 9.216 5.12 16.896 15.36t7.68 30.72l0 6.144zM251.904 349.184q-2.048 15.36-13.312 23.04t-24.064 7.68-23.552-7.68-10.752-23.04q0-35.84 3.584-58.88t6.656-43.52q5.12-29.696 17.92-50.176t26.624-37.376 25.088-32.768 14.336-37.376q4.096-30.72 5.632-48.64t5.12-26.624 10.752-10.752 23.552-2.048 23.552 11.776 8.192 29.696-2.048 37.888-6.144 35.328q-2.048 14.336-9.728 29.184t-17.92 30.72-20.48 31.232-18.432 29.696q-9.216 15.36-14.336 38.4t-10.24 74.24zM445.44 349.184q-2.048 15.36-13.312 23.04t-24.064 7.68-23.552-7.68-10.752-23.04q0-35.84 3.584-58.88t7.68-43.52q5.12-29.696 17.92-50.176t26.112-37.376 24.576-32.768 14.336-37.376q4.096-30.72 6.144-48.64t5.632-26.624 10.752-10.752 23.552-2.048 23.04 11.776 7.68 29.696-1.536 37.888-5.632 35.328q-3.072 14.336-10.752 29.184t-17.408 30.72-20.48 31.232-18.944 29.696q-9.216 15.36-14.336 38.4t-10.24 74.24zM640 349.184q-2.048 15.36-13.312 23.04t-24.064 7.68-23.552-7.68-10.752-23.04q0-35.84 3.072-58.88t7.168-43.52q5.12-29.696 17.92-50.176t26.624-37.376 25.088-32.768 14.336-37.376q4.096-30.72 5.632-48.64t5.12-26.624 10.752-10.752 23.552-2.048 23.552 11.776 8.192 29.696-2.048 37.888-6.144 35.328q-3.072 14.336-10.752 29.184t-17.408 30.72-19.968 31.232-18.432 29.696q-5.12 8.192-8.704 16.896t-6.144 21.504-4.608 30.72-5.12 43.52z" p-id="8553"></path></svg>
+
+ <svg t="1724229420898" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8098" width="200" height="200"><path d="M892.928 128q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0zM892.928 448.512q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0zM892.928 769.024q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0z" p-id="8099"></path></svg>
+
+
+ <svg t="1724229402123" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7948" width="200" height="200"><path d="M911.945421 306.603008l-62.497894 36.07767c-17.62304 10.177843-40.14592 4.144435-50.315981-13.476966-10.177229-17.622323-4.143514-40.145306 13.469286-50.324173l62.422221-36.033638c-30.075187-43.229594-67.660698-80.808448-110.886912-110.890598l-36.04951 62.414541c-10.171085 17.621299-32.692941 23.654707-50.315981 13.486182-17.625088-10.177843-23.656755-32.700723-13.479526-50.322125L700.379443 95.037542c-46.631936-22.00105-97.723597-36.02135-151.551693-40.466637l0 72.03564c0 20.337152-16.480973 36.835942-36.837478 36.835942-20.336947 0-36.836454-16.49879-36.836454-36.835942L475.153818 54.56985c-53.817856 4.44631-104.912589 18.465587-151.533261 40.461517l36.089344 62.502502c10.170061 17.622323 4.134298 40.144282-13.488742 50.322125-17.611776 10.168627-40.14592 4.135219-50.325197-13.486182l-36.032102-62.414541c-43.23543 30.08215-80.811725 67.666125-110.89408 110.890598l62.410957 36.033638c17.624064 10.178867 23.656755 32.702771 13.488742 50.324173-10.170061 17.621299-32.703181 23.655731-50.327245 13.476966l-62.497894-36.071526c-26.967245 57.152717-42.104627 120.981402-42.104627 188.367155 0 244.134298 197.907354 442.041651 442.05056 442.041651 244.153446 0 442.066944-197.905408 442.066944-442.041651C954.05824 427.586458 938.919834 363.755725 911.945421 306.603008zM767.225549 642.319053c-81.385882 140.943053-261.623091 189.244109-402.584166 107.86775-140.962099-81.382502-189.253939-261.618483-107.864986-402.564608 81.37769-140.946125 261.624115-189.245133 402.584166-107.869798C800.302285 321.13705 848.603238 501.372928 767.225549 642.319053zM667.258778 305.542861 562.319565 482.312909c-10.170061 17.611059-32.694989 23.654707-50.325197 13.487206-17.6128-10.178867-23.655731-32.710963-13.478502-50.324173L603.857306 268.040704c-28.383539-11.459994-59.370598-17.823949-91.862938-17.823949-135.626342 0-245.582029 109.951181-245.582029 245.583258 0 135.619789 109.955686 245.571994 245.582029 245.571994 135.644774 0 245.593293-109.950157 245.593293-245.571994C757.587661 419.071488 722.381414 350.581658 667.258778 305.542861z" p-id="7949"></path></svg>
+
+
+ <svg t="1724229420898" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8098" width="200" height="200"><path d="M892.928 128q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0zM892.928 448.512q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0zM892.928 769.024q28.672 0 48.64 19.968t19.968 48.64l0 52.224q0 28.672-19.968 48.64t-48.64 19.968l-759.808 0q-28.672 0-48.64-19.968t-19.968-48.64l0-52.224q0-28.672 19.968-48.64t48.64-19.968l759.808 0z" p-id="8099"></path></svg>
\ No newline at end of file
diff --git a/Views/PaginationDemo.Designer.cs b/Views/PaginationDemo.Designer.cs
new file mode 100644
index 0000000..af64bac
--- /dev/null
+++ b/Views/PaginationDemo.Designer.cs
@@ -0,0 +1,580 @@
+namespace AntdUIDemo.Views
+{
+ partial class PaginationDemo
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new AntdUI.Label();
+ this.label2 = new AntdUI.Label();
+ this.divider1 = new AntdUI.Divider();
+ this.label12 = new AntdUI.Label();
+ this.stackPanel1 = new AntdUI.StackPanel();
+ this.stackPanel5 = new AntdUI.StackPanel();
+ this.selectMultiple = new AntdUI.SelectMultiple();
+ this.label14 = new AntdUI.Label();
+ this.stackPanel4 = new AntdUI.StackPanel();
+ this.switch_show = new AntdUI.Switch();
+ this.label9 = new AntdUI.Label();
+ this.input_textdesc = new AntdUI.Input();
+ this.label10 = new AntdUI.Label();
+ this.input_radius = new AntdUI.InputNumber();
+ this.label11 = new AntdUI.Label();
+ this.stackPanel3 = new AntdUI.StackPanel();
+ this.input_gap = new AntdUI.InputNumber();
+ this.label5 = new AntdUI.Label();
+ this.colorPicker = new AntdUI.ColorPicker();
+ this.label6 = new AntdUI.Label();
+ this.input_max = new AntdUI.InputNumber();
+ this.label8 = new AntdUI.Label();
+ this.stackPanel2 = new AntdUI.StackPanel();
+ this.input_total = new AntdUI.InputNumber();
+ this.label4 = new AntdUI.Label();
+ this.input_pagesize = new AntdUI.InputNumber();
+ this.label3 = new AntdUI.Label();
+ this.input_current = new AntdUI.InputNumber();
+ this.label7 = new AntdUI.Label();
+ this.input_size = new AntdUI.InputNumber();
+ this.label13 = new AntdUI.Label();
+ this.stackPanel6 = new AntdUI.StackPanel();
+ this.switch_right = new AntdUI.Switch();
+ this.label15 = new AntdUI.Label();
+ this.stackPanel7 = new AntdUI.StackPanel();
+ this.buttonCZ = new AntdUI.Button();
+ this.pagination = new AntdUI.Pagination();
+ this.stackPanel1.SuspendLayout();
+ this.stackPanel5.SuspendLayout();
+ this.stackPanel4.SuspendLayout();
+ this.stackPanel3.SuspendLayout();
+ this.stackPanel2.SuspendLayout();
+ this.stackPanel6.SuspendLayout();
+ this.stackPanel7.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label1.Location = new System.Drawing.Point(3, 3);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(694, 40);
+ this.label1.TabIndex = 3;
+ this.label1.Text = "Pagination 分页";
+ //
+ // label2
+ //
+ this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label2.Location = new System.Drawing.Point(3, 49);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(694, 24);
+ this.label2.TabIndex = 4;
+ this.label2.Text = "采用分页的形式分隔长列表,每次只加载一个页面。";
+ //
+ // divider1
+ //
+ this.divider1.Location = new System.Drawing.Point(3, 79);
+ this.divider1.Name = "divider1";
+ this.divider1.Size = new System.Drawing.Size(694, 12);
+ this.divider1.TabIndex = 32;
+ //
+ // label12
+ //
+ this.label12.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
+ this.label12.Location = new System.Drawing.Point(3, 97);
+ this.label12.Name = "label12";
+ this.label12.Size = new System.Drawing.Size(694, 24);
+ this.label12.TabIndex = 41;
+ this.label12.Text = "控件配置";
+ //
+ // stackPanel1
+ //
+ this.stackPanel1.Controls.Add(this.pagination);
+ this.stackPanel1.Controls.Add(this.stackPanel7);
+ this.stackPanel1.Controls.Add(this.stackPanel6);
+ this.stackPanel1.Controls.Add(this.stackPanel5);
+ this.stackPanel1.Controls.Add(this.stackPanel4);
+ this.stackPanel1.Controls.Add(this.stackPanel3);
+ this.stackPanel1.Controls.Add(this.stackPanel2);
+ this.stackPanel1.Controls.Add(this.label12);
+ this.stackPanel1.Controls.Add(this.divider1);
+ this.stackPanel1.Controls.Add(this.label2);
+ this.stackPanel1.Controls.Add(this.label1);
+ 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, 535);
+ this.stackPanel1.TabIndex = 0;
+ this.stackPanel1.Text = "stackPanel1";
+ this.stackPanel1.Vertical = true;
+ //
+ // stackPanel5
+ //
+ this.stackPanel5.Controls.Add(this.input_size);
+ this.stackPanel5.Controls.Add(this.label13);
+ this.stackPanel5.Controls.Add(this.selectMultiple);
+ this.stackPanel5.Controls.Add(this.label14);
+ this.stackPanel5.Location = new System.Drawing.Point(3, 241);
+ this.stackPanel5.Name = "stackPanel5";
+ this.stackPanel5.Size = new System.Drawing.Size(694, 32);
+ this.stackPanel5.TabIndex = 45;
+ this.stackPanel5.Text = "stackPanel5";
+ //
+ // selectMultiple
+ //
+ this.selectMultiple.Items.AddRange(new object[] {
+ "1",
+ "2",
+ "5",
+ "10",
+ "20",
+ "50",
+ "100"});
+ this.selectMultiple.Location = new System.Drawing.Point(159, 3);
+ this.selectMultiple.Name = "selectMultiple";
+ this.selectMultiple.SelectedValue = new object[0];
+ this.selectMultiple.Size = new System.Drawing.Size(252, 26);
+ this.selectMultiple.TabIndex = 9;
+ this.selectMultiple.WaveSize = 0;
+ //
+ // label14
+ //
+ this.label14.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label14.Location = new System.Drawing.Point(3, 3);
+ this.label14.Name = "label14";
+ this.label14.Size = new System.Drawing.Size(150, 26);
+ this.label14.TabIndex = 8;
+ this.label14.Text = "PageSizeOptions";
+ //
+ // stackPanel4
+ //
+ this.stackPanel4.Controls.Add(this.switch_show);
+ this.stackPanel4.Controls.Add(this.label9);
+ this.stackPanel4.Controls.Add(this.input_textdesc);
+ this.stackPanel4.Controls.Add(this.label10);
+ this.stackPanel4.Controls.Add(this.input_radius);
+ this.stackPanel4.Controls.Add(this.label11);
+ this.stackPanel4.Location = new System.Drawing.Point(3, 203);
+ this.stackPanel4.Name = "stackPanel4";
+ this.stackPanel4.Size = new System.Drawing.Size(694, 32);
+ this.stackPanel4.TabIndex = 44;
+ this.stackPanel4.Text = "stackPanel4";
+ //
+ // switch_show
+ //
+ this.switch_show.AutoCheck = true;
+ this.switch_show.Checked = true;
+ this.switch_show.CheckedText = "True";
+ this.switch_show.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.switch_show.Location = new System.Drawing.Point(578, 3);
+ this.switch_show.Name = "switch_show";
+ this.switch_show.Size = new System.Drawing.Size(75, 26);
+ this.switch_show.TabIndex = 13;
+ this.switch_show.Text = "switch1";
+ this.switch_show.UnCheckedText = "False";
+ this.switch_show.WaveSize = 0;
+ //
+ // label9
+ //
+ this.label9.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label9.Location = new System.Drawing.Point(417, 3);
+ this.label9.Name = "label9";
+ this.label9.Size = new System.Drawing.Size(155, 26);
+ this.label9.TabIndex = 12;
+ this.label9.Text = "ShowSizeChanger";
+ //
+ // input_textdesc
+ //
+ this.input_textdesc.Location = new System.Drawing.Point(336, 3);
+ this.input_textdesc.Name = "input_textdesc";
+ this.input_textdesc.Size = new System.Drawing.Size(75, 26);
+ this.input_textdesc.TabIndex = 11;
+ this.input_textdesc.WaveSize = 0;
+ //
+ // label10
+ //
+ this.label10.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label10.Location = new System.Drawing.Point(210, 3);
+ this.label10.Name = "label10";
+ this.label10.Size = new System.Drawing.Size(120, 26);
+ this.label10.TabIndex = 10;
+ this.label10.Text = "TextDesc";
+ //
+ // input_radius
+ //
+ this.input_radius.Location = new System.Drawing.Point(129, 3);
+ this.input_radius.Minimum = new decimal(new int[] {
+ 0,
+ 0,
+ 0,
+ 0});
+ this.input_radius.Name = "input_radius";
+ this.input_radius.Size = new System.Drawing.Size(75, 26);
+ this.input_radius.TabIndex = 9;
+ this.input_radius.Text = "6";
+ this.input_radius.Value = new decimal(new int[] {
+ 6,
+ 0,
+ 0,
+ 0});
+ this.input_radius.WaveSize = 0;
+ //
+ // label11
+ //
+ this.label11.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label11.Location = new System.Drawing.Point(3, 3);
+ this.label11.Name = "label11";
+ this.label11.Size = new System.Drawing.Size(120, 26);
+ this.label11.TabIndex = 8;
+ this.label11.Text = "Radius";
+ //
+ // stackPanel3
+ //
+ this.stackPanel3.Controls.Add(this.input_gap);
+ this.stackPanel3.Controls.Add(this.label5);
+ this.stackPanel3.Controls.Add(this.colorPicker);
+ this.stackPanel3.Controls.Add(this.label6);
+ this.stackPanel3.Controls.Add(this.input_max);
+ this.stackPanel3.Controls.Add(this.label8);
+ this.stackPanel3.Location = new System.Drawing.Point(3, 165);
+ this.stackPanel3.Name = "stackPanel3";
+ this.stackPanel3.Size = new System.Drawing.Size(694, 32);
+ this.stackPanel3.TabIndex = 43;
+ this.stackPanel3.Text = "stackPanel3";
+ //
+ // input_gap
+ //
+ this.input_gap.Location = new System.Drawing.Point(578, 3);
+ this.input_gap.Minimum = new decimal(new int[] {
+ 0,
+ 0,
+ 0,
+ 0});
+ this.input_gap.Name = "input_gap";
+ this.input_gap.Size = new System.Drawing.Size(75, 26);
+ this.input_gap.TabIndex = 16;
+ this.input_gap.Text = "8";
+ this.input_gap.Value = new decimal(new int[] {
+ 8,
+ 0,
+ 0,
+ 0});
+ this.input_gap.WaveSize = 0;
+ //
+ // label5
+ //
+ this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label5.Location = new System.Drawing.Point(417, 3);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(155, 26);
+ this.label5.TabIndex = 15;
+ this.label5.Text = "Gap";
+ //
+ // colorPicker
+ //
+ this.colorPicker.Location = new System.Drawing.Point(336, 3);
+ this.colorPicker.Name = "colorPicker";
+ this.colorPicker.Size = new System.Drawing.Size(75, 26);
+ this.colorPicker.TabIndex = 14;
+ this.colorPicker.Text = "colorPicker1";
+ this.colorPicker.WaveSize = 0;
+ //
+ // label6
+ //
+ this.label6.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label6.Location = new System.Drawing.Point(210, 3);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(120, 26);
+ this.label6.TabIndex = 10;
+ this.label6.Text = "Fill";
+ //
+ // input_max
+ //
+ this.input_max.Location = new System.Drawing.Point(129, 3);
+ this.input_max.Minimum = new decimal(new int[] {
+ 0,
+ 0,
+ 0,
+ 0});
+ this.input_max.Name = "input_max";
+ this.input_max.Size = new System.Drawing.Size(75, 26);
+ this.input_max.TabIndex = 9;
+ this.input_max.Text = "0";
+ this.input_max.WaveSize = 0;
+ //
+ // label8
+ //
+ this.label8.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label8.Location = new System.Drawing.Point(3, 3);
+ this.label8.Name = "label8";
+ this.label8.Size = new System.Drawing.Size(120, 26);
+ this.label8.TabIndex = 8;
+ this.label8.Text = "MaxPageTotal";
+ //
+ // stackPanel2
+ //
+ this.stackPanel2.Controls.Add(this.input_total);
+ this.stackPanel2.Controls.Add(this.label4);
+ this.stackPanel2.Controls.Add(this.input_pagesize);
+ this.stackPanel2.Controls.Add(this.label3);
+ this.stackPanel2.Controls.Add(this.input_current);
+ this.stackPanel2.Controls.Add(this.label7);
+ this.stackPanel2.Location = new System.Drawing.Point(3, 127);
+ this.stackPanel2.Name = "stackPanel2";
+ this.stackPanel2.Size = new System.Drawing.Size(694, 32);
+ this.stackPanel2.TabIndex = 42;
+ this.stackPanel2.Text = "stackPanel2";
+ //
+ // input_total
+ //
+ this.input_total.Location = new System.Drawing.Point(578, 3);
+ this.input_total.Minimum = new decimal(new int[] {
+ 0,
+ 0,
+ 0,
+ 0});
+ this.input_total.Name = "input_total";
+ this.input_total.Size = new System.Drawing.Size(75, 26);
+ this.input_total.TabIndex = 13;
+ this.input_total.Text = "50";
+ this.input_total.Value = new decimal(new int[] {
+ 50,
+ 0,
+ 0,
+ 0});
+ this.input_total.WaveSize = 0;
+ //
+ // label4
+ //
+ this.label4.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label4.Location = new System.Drawing.Point(417, 3);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(155, 26);
+ this.label4.TabIndex = 12;
+ this.label4.Text = "Total";
+ //
+ // input_pagesize
+ //
+ this.input_pagesize.Location = new System.Drawing.Point(336, 3);
+ this.input_pagesize.Minimum = new decimal(new int[] {
+ 0,
+ 0,
+ 0,
+ 0});
+ this.input_pagesize.Name = "input_pagesize";
+ this.input_pagesize.Size = new System.Drawing.Size(75, 26);
+ this.input_pagesize.TabIndex = 11;
+ this.input_pagesize.Text = "10";
+ this.input_pagesize.Value = new decimal(new int[] {
+ 10,
+ 0,
+ 0,
+ 0});
+ this.input_pagesize.WaveSize = 0;
+ //
+ // label3
+ //
+ this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label3.Location = new System.Drawing.Point(210, 3);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(120, 26);
+ this.label3.TabIndex = 10;
+ this.label3.Text = "PageSize";
+ //
+ // input_current
+ //
+ this.input_current.Location = new System.Drawing.Point(129, 3);
+ this.input_current.Minimum = new decimal(new int[] {
+ 0,
+ 0,
+ 0,
+ 0});
+ this.input_current.Name = "input_current";
+ this.input_current.Size = new System.Drawing.Size(75, 26);
+ this.input_current.TabIndex = 9;
+ this.input_current.Text = "1";
+ this.input_current.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.input_current.WaveSize = 0;
+ //
+ // 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, 3);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(120, 26);
+ this.label7.TabIndex = 8;
+ this.label7.Text = "Current";
+ //
+ // input_size
+ //
+ this.input_size.Location = new System.Drawing.Point(578, 3);
+ this.input_size.Minimum = new decimal(new int[] {
+ 0,
+ 0,
+ 0,
+ 0});
+ this.input_size.Name = "input_size";
+ this.input_size.Size = new System.Drawing.Size(75, 26);
+ this.input_size.TabIndex = 18;
+ this.input_size.Text = "60";
+ this.input_size.Value = new decimal(new int[] {
+ 60,
+ 0,
+ 0,
+ 0});
+ this.input_size.WaveSize = 0;
+ //
+ // label13
+ //
+ this.label13.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.label13.Location = new System.Drawing.Point(417, 3);
+ this.label13.Name = "label13";
+ this.label13.Size = new System.Drawing.Size(155, 26);
+ this.label13.TabIndex = 17;
+ this.label13.Text = "SizeChangerWidth";
+ //
+ // stackPanel6
+ //
+ this.stackPanel6.Controls.Add(this.switch_right);
+ this.stackPanel6.Controls.Add(this.label15);
+ this.stackPanel6.Location = new System.Drawing.Point(3, 279);
+ this.stackPanel6.Name = "stackPanel6";
+ this.stackPanel6.Size = new System.Drawing.Size(694, 38);
+ this.stackPanel6.TabIndex = 47;
+ this.stackPanel6.Text = "stackPanel6";
+ //
+ // switch_right
+ //
+ this.switch_right.AutoCheck = true;
+ this.switch_right.Checked = true;
+ this.switch_right.CheckedText = "Yes";
+ this.switch_right.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.switch_right.Location = new System.Drawing.Point(129, 3);
+ this.switch_right.Name = "switch_right";
+ this.switch_right.Size = new System.Drawing.Size(75, 32);
+ this.switch_right.TabIndex = 15;
+ this.switch_right.Text = "switch1";
+ this.switch_right.UnCheckedText = "No";
+ this.switch_right.WaveSize = 0;
+ //
+ // 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, 3);
+ this.label15.Name = "label15";
+ this.label15.Size = new System.Drawing.Size(120, 32);
+ this.label15.TabIndex = 14;
+ this.label15.Text = "RightToLeft";
+ //
+ // stackPanel7
+ //
+ this.stackPanel7.Controls.Add(this.buttonCZ);
+ this.stackPanel7.Location = new System.Drawing.Point(3, 323);
+ this.stackPanel7.Name = "stackPanel7";
+ this.stackPanel7.Size = new System.Drawing.Size(694, 38);
+ this.stackPanel7.TabIndex = 49;
+ this.stackPanel7.Text = "stackPanel7";
+ //
+ // buttonCZ
+ //
+ this.buttonCZ.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.buttonCZ.Location = new System.Drawing.Point(3, 3);
+ this.buttonCZ.Name = "buttonCZ";
+ this.buttonCZ.Size = new System.Drawing.Size(75, 32);
+ this.buttonCZ.TabIndex = 16;
+ this.buttonCZ.Text = "重 置";
+ this.buttonCZ.Type = AntdUI.TTypeMini.Warn;
+ this.buttonCZ.WaveSize = 0;
+ //
+ // pagination
+ //
+ this.pagination.Location = new System.Drawing.Point(3, 367);
+ this.pagination.Name = "pagination";
+ this.pagination.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.pagination.Size = new System.Drawing.Size(694, 32);
+ this.pagination.TabIndex = 50;
+ this.pagination.Text = "pagination1";
+ //
+ // PaginationDemo
+ //
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
+ this.Controls.Add(this.stackPanel1);
+ this.Name = "PaginationDemo";
+ this.Size = new System.Drawing.Size(700, 535);
+ this.stackPanel1.ResumeLayout(false);
+ this.stackPanel5.ResumeLayout(false);
+ this.stackPanel4.ResumeLayout(false);
+ this.stackPanel3.ResumeLayout(false);
+ this.stackPanel2.ResumeLayout(false);
+ this.stackPanel6.ResumeLayout(false);
+ this.stackPanel7.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private AntdUI.Label label1;
+ private AntdUI.Label label2;
+ private AntdUI.Divider divider1;
+ private AntdUI.Label label12;
+ private AntdUI.StackPanel stackPanel1;
+ private AntdUI.StackPanel stackPanel5;
+ private AntdUI.SelectMultiple selectMultiple;
+ private AntdUI.Label label14;
+ private AntdUI.StackPanel stackPanel4;
+ private AntdUI.Switch switch_show;
+ private AntdUI.Label label9;
+ private AntdUI.Input input_textdesc;
+ private AntdUI.Label label10;
+ private AntdUI.InputNumber input_radius;
+ private AntdUI.Label label11;
+ private AntdUI.StackPanel stackPanel3;
+ private AntdUI.InputNumber input_gap;
+ private AntdUI.Label label5;
+ private AntdUI.ColorPicker colorPicker;
+ private AntdUI.Label label6;
+ private AntdUI.InputNumber input_max;
+ private AntdUI.Label label8;
+ private AntdUI.StackPanel stackPanel2;
+ private AntdUI.InputNumber input_total;
+ private AntdUI.Label label4;
+ private AntdUI.InputNumber input_pagesize;
+ private AntdUI.Label label3;
+ private AntdUI.InputNumber input_current;
+ private AntdUI.Label label7;
+ private AntdUI.InputNumber input_size;
+ private AntdUI.Label label13;
+ private AntdUI.StackPanel stackPanel6;
+ private AntdUI.Pagination pagination;
+ private AntdUI.StackPanel stackPanel7;
+ private AntdUI.Button buttonCZ;
+ private AntdUI.Switch switch_right;
+ private AntdUI.Label label15;
+ }
+}
diff --git a/Views/PaginationDemo.cs b/Views/PaginationDemo.cs
new file mode 100644
index 0000000..5b47fbb
--- /dev/null
+++ b/Views/PaginationDemo.cs
@@ -0,0 +1,131 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace AntdUIDemo.Views
+{
+ public partial class PaginationDemo : UserControl
+ {
+ private int selectMultiple_SelectedIndexChanged;
+
+ public PaginationDemo()
+ {
+ InitializeComponent();
+ InitData();
+ // 绑定事件
+ BindEventHandler();
+ LoadPagination();
+ }
+
+ private void BindEventHandler()
+ {
+ input_current.ValueChanged += input_decimal_ValueChanged;
+ input_total.ValueChanged += input_decimal_ValueChanged;
+ input_pagesize.ValueChanged += input_decimal_ValueChanged;
+ input_max.ValueChanged += input_decimal_ValueChanged;
+ input_gap.ValueChanged += input_decimal_ValueChanged;
+ input_radius.ValueChanged += input_decimal_ValueChanged;
+ input_size.ValueChanged += input_decimal_ValueChanged;
+
+ input_textdesc.TextChanged += input_textdesc_TextChanged;
+
+ colorPicker.ValueChanged += colorPicker_ValueChanged;
+
+ switch_show.CheckedChanged += switch_CheckedChanged;
+ switch_right.CheckedChanged += switch_CheckedChanged;
+
+ selectMultiple.SelectedValueChanged += SelectMultiple_SelectedValueChanged;
+
+ buttonCZ.Click += ButtonCZ_Click;
+ pagination.ValueChanged += Pagination_ValueChanged;
+ }
+
+ private void Pagination_ValueChanged(int current, int total, int pageSize, int pageTotal)
+ {
+ //与分页交互修改输入值
+ input_current.Value = current;
+ input_total.Value = total;
+ input_pagesize.Value = pageSize;
+ }
+
+ private void ButtonCZ_Click(object sender, EventArgs e)
+ {
+ InitData();
+ LoadPagination();
+ }
+
+ private void SelectMultiple_SelectedValueChanged(object sender, object[] value)
+ {
+ LoadPagination();
+ }
+
+ private void switch_CheckedChanged(object sender, bool value)
+ {
+ LoadPagination();
+ }
+
+ private void colorPicker_ValueChanged(object sender, Color value)
+ {
+ LoadPagination();
+ }
+
+ private void input_textdesc_TextChanged(object sender, EventArgs e)
+ {
+ LoadPagination();
+ }
+
+ private void input_decimal_ValueChanged(object sender, decimal value)
+ {
+ LoadPagination();
+ }
+
+ private void LoadPagination()
+ {
+ pagination.Current = (int)input_current.Value;
+ pagination.Total = (int)input_total.Value;
+ pagination.PageSize = (int)input_pagesize.Value;
+ pagination.MaxPageTotal = (int)input_max.Value;
+ pagination.Gap = (int)input_gap.Value;
+ pagination.Radius = (int)input_radius.Value;
+ pagination.SizeChangerWidth = (int)input_size.Value;
+
+ pagination.TextDesc = input_textdesc.Text;
+
+ pagination.Fill = colorPicker.Value == Color.Transparent ? null : colorPicker.Value;
+ int[] intarr = new int[selectMultiple.SelectedValue.Length];
+ for (int i = 0; i < intarr.Length; i++)
+ {
+ intarr[i] = int.Parse(selectMultiple.SelectedValue[i].ToString());
+ }
+ pagination.PageSizeOptions = intarr;
+
+ pagination.ShowSizeChanger = switch_show.Checked;
+ pagination.RightToLeft = switch_right.Checked ? RightToLeft.Yes : RightToLeft.No;
+ }
+
+ private void InitData()
+ {
+ input_current.Value = 1;
+ input_total.Value = 50;
+ input_pagesize.Value = 10;
+ input_max.Value = 0;
+ input_gap.Value = 8;
+ input_radius.Value = 6;
+ input_size.Value = 60;
+
+ input_textdesc.Text = null;
+
+ colorPicker.Value = Color.Transparent;
+
+ switch_show.Checked = true;
+ switch_right.Checked = true;
+ selectMultiple.SelectedValue = ["1", "2", "5", "10"];
+ }
+ }
+}
diff --git a/Views/PaginationDemo.resx b/Views/PaginationDemo.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/Views/PaginationDemo.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/assets/screenshots/Menu.png b/assets/screenshots/Menu.png
new file mode 100644
index 0000000..aad596d
Binary files /dev/null and b/assets/screenshots/Menu.png differ