readme
This commit is contained in:
parent
473061a7f7
commit
5e94f2a098
@ -238,7 +238,12 @@ namespace AntdUIDemo
|
||||
case "Tabs":
|
||||
control = new TabsDemo(this);
|
||||
break;
|
||||
|
||||
case "Tag":
|
||||
control = new TagDemo();
|
||||
break;
|
||||
case "Timeline":
|
||||
control = new TimelineDemo();
|
||||
break;
|
||||
case "Drawer":
|
||||
control = new DrawerDemo(this);
|
||||
break;
|
||||
|
||||
@ -106,9 +106,13 @@
|
||||
#### Segmented 分段控制器
|
||||

|
||||
#### Table 表格
|
||||

|
||||
#### Tabs 标签页
|
||||

|
||||
#### Tag 标签
|
||||

|
||||
#### Timeline 时间轴
|
||||

|
||||
#### Tooltip 文字提示
|
||||
#### Tree 树形控件
|
||||
|
||||
|
||||
440
Views/TagDemo.Designer.cs
generated
440
Views/TagDemo.Designer.cs
generated
@ -30,18 +30,10 @@
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TagDemo));
|
||||
this.stackPanel1 = new AntdUI.StackPanel();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.divider1 = new AntdUI.Divider();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.flowPanel3 = new AntdUI.FlowPanel();
|
||||
this.tag1 = new AntdUI.Tag();
|
||||
this.tag2 = new AntdUI.Tag();
|
||||
this.tag3 = new AntdUI.Tag();
|
||||
this.tag4 = new AntdUI.Tag();
|
||||
this.tag5 = new AntdUI.Tag();
|
||||
this.tag6 = new AntdUI.Tag();
|
||||
this.label4 = new AntdUI.Label();
|
||||
this.flowPanel2 = new AntdUI.FlowPanel();
|
||||
this.tag13 = new AntdUI.Tag();
|
||||
this.tag18 = new AntdUI.Tag();
|
||||
this.label5 = new AntdUI.Label();
|
||||
this.flowPanel1 = new AntdUI.FlowPanel();
|
||||
this.tag7 = new AntdUI.Tag();
|
||||
this.tag8 = new AntdUI.Tag();
|
||||
@ -49,14 +41,22 @@
|
||||
this.tag10 = new AntdUI.Tag();
|
||||
this.tag11 = new AntdUI.Tag();
|
||||
this.tag12 = new AntdUI.Tag();
|
||||
this.label5 = new AntdUI.Label();
|
||||
this.flowPanel2 = new AntdUI.FlowPanel();
|
||||
this.tag18 = new AntdUI.Tag();
|
||||
this.tag13 = new AntdUI.Tag();
|
||||
this.label4 = new AntdUI.Label();
|
||||
this.flowPanel3 = new AntdUI.FlowPanel();
|
||||
this.tag6 = new AntdUI.Tag();
|
||||
this.tag5 = new AntdUI.Tag();
|
||||
this.tag4 = new AntdUI.Tag();
|
||||
this.tag3 = new AntdUI.Tag();
|
||||
this.tag2 = new AntdUI.Tag();
|
||||
this.tag1 = new AntdUI.Tag();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.divider1 = new AntdUI.Divider();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.flowPanel3.SuspendLayout();
|
||||
this.flowPanel1.SuspendLayout();
|
||||
this.flowPanel2.SuspendLayout();
|
||||
this.flowPanel1.SuspendLayout();
|
||||
this.flowPanel3.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// stackPanel1
|
||||
@ -78,6 +78,206 @@
|
||||
this.stackPanel1.Text = "stackPanel1";
|
||||
this.stackPanel1.Vertical = true;
|
||||
//
|
||||
// flowPanel2
|
||||
//
|
||||
this.flowPanel2.Controls.Add(this.tag13);
|
||||
this.flowPanel2.Controls.Add(this.tag18);
|
||||
this.flowPanel2.Location = new System.Drawing.Point(3, 275);
|
||||
this.flowPanel2.Name = "flowPanel2";
|
||||
this.flowPanel2.Size = new System.Drawing.Size(694, 38);
|
||||
this.flowPanel2.TabIndex = 33;
|
||||
this.flowPanel2.Text = "flowPanel2";
|
||||
//
|
||||
// tag13
|
||||
//
|
||||
this.tag13.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag13.ImageSvg = resources.GetString("tag13.ImageSvg");
|
||||
this.tag13.Location = new System.Drawing.Point(175, 3);
|
||||
this.tag13.Name = "tag13";
|
||||
this.tag13.Size = new System.Drawing.Size(166, 32);
|
||||
this.tag13.TabIndex = 1;
|
||||
this.tag13.Text = "这是Svg标签";
|
||||
//
|
||||
// tag18
|
||||
//
|
||||
this.tag18.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag18.Image = global::AntdUIDemo.Properties.Resources.head;
|
||||
this.tag18.Location = new System.Drawing.Point(3, 3);
|
||||
this.tag18.Name = "tag18";
|
||||
this.tag18.Size = new System.Drawing.Size(166, 32);
|
||||
this.tag18.TabIndex = 0;
|
||||
this.tag18.Text = "这是Image标签";
|
||||
//
|
||||
// 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, 245);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(694, 24);
|
||||
this.label5.TabIndex = 32;
|
||||
this.label5.Text = "自定义";
|
||||
//
|
||||
// flowPanel1
|
||||
//
|
||||
this.flowPanel1.Controls.Add(this.tag7);
|
||||
this.flowPanel1.Controls.Add(this.tag8);
|
||||
this.flowPanel1.Controls.Add(this.tag9);
|
||||
this.flowPanel1.Controls.Add(this.tag10);
|
||||
this.flowPanel1.Controls.Add(this.tag11);
|
||||
this.flowPanel1.Controls.Add(this.tag12);
|
||||
this.flowPanel1.Location = new System.Drawing.Point(3, 201);
|
||||
this.flowPanel1.Name = "flowPanel1";
|
||||
this.flowPanel1.Size = new System.Drawing.Size(694, 38);
|
||||
this.flowPanel1.TabIndex = 31;
|
||||
this.flowPanel1.Text = "flowPanel1";
|
||||
//
|
||||
// tag7
|
||||
//
|
||||
this.tag7.CloseIcon = true;
|
||||
this.tag7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag7.Location = new System.Drawing.Point(433, 3);
|
||||
this.tag7.Name = "tag7";
|
||||
this.tag7.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag7.TabIndex = 5;
|
||||
this.tag7.Text = "Info";
|
||||
this.tag7.Type = AntdUI.TTypeMini.Info;
|
||||
//
|
||||
// tag8
|
||||
//
|
||||
this.tag8.CloseIcon = true;
|
||||
this.tag8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag8.Location = new System.Drawing.Point(347, 3);
|
||||
this.tag8.Name = "tag8";
|
||||
this.tag8.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag8.TabIndex = 4;
|
||||
this.tag8.Text = "Warn";
|
||||
this.tag8.Type = AntdUI.TTypeMini.Warn;
|
||||
//
|
||||
// tag9
|
||||
//
|
||||
this.tag9.CloseIcon = true;
|
||||
this.tag9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag9.Location = new System.Drawing.Point(261, 3);
|
||||
this.tag9.Name = "tag9";
|
||||
this.tag9.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag9.TabIndex = 3;
|
||||
this.tag9.Text = "Error";
|
||||
this.tag9.Type = AntdUI.TTypeMini.Error;
|
||||
//
|
||||
// tag10
|
||||
//
|
||||
this.tag10.CloseIcon = true;
|
||||
this.tag10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag10.Location = new System.Drawing.Point(175, 3);
|
||||
this.tag10.Name = "tag10";
|
||||
this.tag10.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag10.TabIndex = 2;
|
||||
this.tag10.Text = "Success";
|
||||
this.tag10.Type = AntdUI.TTypeMini.Success;
|
||||
//
|
||||
// tag11
|
||||
//
|
||||
this.tag11.CloseIcon = true;
|
||||
this.tag11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag11.Location = new System.Drawing.Point(89, 3);
|
||||
this.tag11.Name = "tag11";
|
||||
this.tag11.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag11.TabIndex = 1;
|
||||
this.tag11.Text = "Primary";
|
||||
this.tag11.Type = AntdUI.TTypeMini.Primary;
|
||||
//
|
||||
// tag12
|
||||
//
|
||||
this.tag12.CloseIcon = true;
|
||||
this.tag12.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag12.Location = new System.Drawing.Point(3, 3);
|
||||
this.tag12.Name = "tag12";
|
||||
this.tag12.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag12.TabIndex = 0;
|
||||
this.tag12.Text = "Default";
|
||||
//
|
||||
// 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(3, 171);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(694, 24);
|
||||
this.label4.TabIndex = 30;
|
||||
this.label4.Text = "关闭按钮";
|
||||
//
|
||||
// flowPanel3
|
||||
//
|
||||
this.flowPanel3.Controls.Add(this.tag6);
|
||||
this.flowPanel3.Controls.Add(this.tag5);
|
||||
this.flowPanel3.Controls.Add(this.tag4);
|
||||
this.flowPanel3.Controls.Add(this.tag3);
|
||||
this.flowPanel3.Controls.Add(this.tag2);
|
||||
this.flowPanel3.Controls.Add(this.tag1);
|
||||
this.flowPanel3.Location = new System.Drawing.Point(3, 127);
|
||||
this.flowPanel3.Name = "flowPanel3";
|
||||
this.flowPanel3.Size = new System.Drawing.Size(694, 38);
|
||||
this.flowPanel3.TabIndex = 29;
|
||||
this.flowPanel3.Text = "flowPanel3";
|
||||
//
|
||||
// tag6
|
||||
//
|
||||
this.tag6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag6.Location = new System.Drawing.Point(433, 3);
|
||||
this.tag6.Name = "tag6";
|
||||
this.tag6.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag6.TabIndex = 5;
|
||||
this.tag6.Text = "Info";
|
||||
this.tag6.Type = AntdUI.TTypeMini.Info;
|
||||
//
|
||||
// tag5
|
||||
//
|
||||
this.tag5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag5.Location = new System.Drawing.Point(347, 3);
|
||||
this.tag5.Name = "tag5";
|
||||
this.tag5.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag5.TabIndex = 4;
|
||||
this.tag5.Text = "Warn";
|
||||
this.tag5.Type = AntdUI.TTypeMini.Warn;
|
||||
//
|
||||
// tag4
|
||||
//
|
||||
this.tag4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag4.Location = new System.Drawing.Point(261, 3);
|
||||
this.tag4.Name = "tag4";
|
||||
this.tag4.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag4.TabIndex = 3;
|
||||
this.tag4.Text = "Error";
|
||||
this.tag4.Type = AntdUI.TTypeMini.Error;
|
||||
//
|
||||
// tag3
|
||||
//
|
||||
this.tag3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag3.Location = new System.Drawing.Point(175, 3);
|
||||
this.tag3.Name = "tag3";
|
||||
this.tag3.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag3.TabIndex = 2;
|
||||
this.tag3.Text = "Success";
|
||||
this.tag3.Type = AntdUI.TTypeMini.Success;
|
||||
//
|
||||
// tag2
|
||||
//
|
||||
this.tag2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag2.Location = new System.Drawing.Point(89, 3);
|
||||
this.tag2.Name = "tag2";
|
||||
this.tag2.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag2.TabIndex = 1;
|
||||
this.tag2.Text = "Primary";
|
||||
this.tag2.Type = AntdUI.TTypeMini.Primary;
|
||||
//
|
||||
// tag1
|
||||
//
|
||||
this.tag1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag1.Location = new System.Drawing.Point(3, 3);
|
||||
this.tag1.Name = "tag1";
|
||||
this.tag1.Size = new System.Drawing.Size(80, 32);
|
||||
this.tag1.TabIndex = 0;
|
||||
this.tag1.Text = "Default";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
@ -112,206 +312,6 @@
|
||||
this.label1.TabIndex = 25;
|
||||
this.label1.Text = "Tag 标签";
|
||||
//
|
||||
// flowPanel3
|
||||
//
|
||||
this.flowPanel3.Controls.Add(this.tag6);
|
||||
this.flowPanel3.Controls.Add(this.tag5);
|
||||
this.flowPanel3.Controls.Add(this.tag4);
|
||||
this.flowPanel3.Controls.Add(this.tag3);
|
||||
this.flowPanel3.Controls.Add(this.tag2);
|
||||
this.flowPanel3.Controls.Add(this.tag1);
|
||||
this.flowPanel3.Location = new System.Drawing.Point(3, 127);
|
||||
this.flowPanel3.Name = "flowPanel3";
|
||||
this.flowPanel3.Size = new System.Drawing.Size(694, 38);
|
||||
this.flowPanel3.TabIndex = 29;
|
||||
this.flowPanel3.Text = "flowPanel3";
|
||||
//
|
||||
// tag1
|
||||
//
|
||||
this.tag1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag1.Location = new System.Drawing.Point(3, 3);
|
||||
this.tag1.Name = "tag1";
|
||||
this.tag1.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag1.TabIndex = 0;
|
||||
this.tag1.Text = "Tag 1";
|
||||
//
|
||||
// tag2
|
||||
//
|
||||
this.tag2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag2.Location = new System.Drawing.Point(69, 3);
|
||||
this.tag2.Name = "tag2";
|
||||
this.tag2.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag2.TabIndex = 1;
|
||||
this.tag2.Text = "Tag 1";
|
||||
this.tag2.Type = AntdUI.TTypeMini.Primary;
|
||||
//
|
||||
// tag3
|
||||
//
|
||||
this.tag3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag3.Location = new System.Drawing.Point(135, 3);
|
||||
this.tag3.Name = "tag3";
|
||||
this.tag3.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag3.TabIndex = 2;
|
||||
this.tag3.Text = "Tag 1";
|
||||
this.tag3.Type = AntdUI.TTypeMini.Success;
|
||||
//
|
||||
// tag4
|
||||
//
|
||||
this.tag4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag4.Location = new System.Drawing.Point(201, 3);
|
||||
this.tag4.Name = "tag4";
|
||||
this.tag4.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag4.TabIndex = 3;
|
||||
this.tag4.Text = "Tag 1";
|
||||
this.tag4.Type = AntdUI.TTypeMini.Error;
|
||||
//
|
||||
// tag5
|
||||
//
|
||||
this.tag5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag5.Location = new System.Drawing.Point(267, 3);
|
||||
this.tag5.Name = "tag5";
|
||||
this.tag5.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag5.TabIndex = 4;
|
||||
this.tag5.Text = "Tag 1";
|
||||
this.tag5.Type = AntdUI.TTypeMini.Warn;
|
||||
//
|
||||
// tag6
|
||||
//
|
||||
this.tag6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag6.Location = new System.Drawing.Point(333, 3);
|
||||
this.tag6.Name = "tag6";
|
||||
this.tag6.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag6.TabIndex = 5;
|
||||
this.tag6.Text = "Tag 1";
|
||||
this.tag6.Type = AntdUI.TTypeMini.Info;
|
||||
//
|
||||
// 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(3, 171);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(694, 24);
|
||||
this.label4.TabIndex = 30;
|
||||
this.label4.Text = "关闭按钮";
|
||||
//
|
||||
// flowPanel1
|
||||
//
|
||||
this.flowPanel1.Controls.Add(this.tag7);
|
||||
this.flowPanel1.Controls.Add(this.tag8);
|
||||
this.flowPanel1.Controls.Add(this.tag9);
|
||||
this.flowPanel1.Controls.Add(this.tag10);
|
||||
this.flowPanel1.Controls.Add(this.tag11);
|
||||
this.flowPanel1.Controls.Add(this.tag12);
|
||||
this.flowPanel1.Location = new System.Drawing.Point(3, 201);
|
||||
this.flowPanel1.Name = "flowPanel1";
|
||||
this.flowPanel1.Size = new System.Drawing.Size(694, 38);
|
||||
this.flowPanel1.TabIndex = 31;
|
||||
this.flowPanel1.Text = "flowPanel1";
|
||||
//
|
||||
// tag7
|
||||
//
|
||||
this.tag7.CloseIcon = true;
|
||||
this.tag7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag7.Location = new System.Drawing.Point(333, 3);
|
||||
this.tag7.Name = "tag7";
|
||||
this.tag7.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag7.TabIndex = 5;
|
||||
this.tag7.Text = "Tag 1";
|
||||
this.tag7.Type = AntdUI.TTypeMini.Info;
|
||||
//
|
||||
// tag8
|
||||
//
|
||||
this.tag8.CloseIcon = true;
|
||||
this.tag8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag8.Location = new System.Drawing.Point(267, 3);
|
||||
this.tag8.Name = "tag8";
|
||||
this.tag8.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag8.TabIndex = 4;
|
||||
this.tag8.Text = "Tag 1";
|
||||
this.tag8.Type = AntdUI.TTypeMini.Warn;
|
||||
//
|
||||
// tag9
|
||||
//
|
||||
this.tag9.CloseIcon = true;
|
||||
this.tag9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag9.Location = new System.Drawing.Point(201, 3);
|
||||
this.tag9.Name = "tag9";
|
||||
this.tag9.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag9.TabIndex = 3;
|
||||
this.tag9.Text = "Tag 1";
|
||||
this.tag9.Type = AntdUI.TTypeMini.Error;
|
||||
//
|
||||
// tag10
|
||||
//
|
||||
this.tag10.CloseIcon = true;
|
||||
this.tag10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag10.Location = new System.Drawing.Point(135, 3);
|
||||
this.tag10.Name = "tag10";
|
||||
this.tag10.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag10.TabIndex = 2;
|
||||
this.tag10.Text = "Tag 1";
|
||||
this.tag10.Type = AntdUI.TTypeMini.Success;
|
||||
//
|
||||
// tag11
|
||||
//
|
||||
this.tag11.CloseIcon = true;
|
||||
this.tag11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag11.Location = new System.Drawing.Point(69, 3);
|
||||
this.tag11.Name = "tag11";
|
||||
this.tag11.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag11.TabIndex = 1;
|
||||
this.tag11.Text = "Tag 1";
|
||||
this.tag11.Type = AntdUI.TTypeMini.Primary;
|
||||
//
|
||||
// tag12
|
||||
//
|
||||
this.tag12.CloseIcon = true;
|
||||
this.tag12.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag12.Location = new System.Drawing.Point(3, 3);
|
||||
this.tag12.Name = "tag12";
|
||||
this.tag12.Size = new System.Drawing.Size(60, 32);
|
||||
this.tag12.TabIndex = 0;
|
||||
this.tag12.Text = "Tag 1";
|
||||
//
|
||||
// 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, 245);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(694, 24);
|
||||
this.label5.TabIndex = 32;
|
||||
this.label5.Text = "自定义";
|
||||
//
|
||||
// flowPanel2
|
||||
//
|
||||
this.flowPanel2.Controls.Add(this.tag13);
|
||||
this.flowPanel2.Controls.Add(this.tag18);
|
||||
this.flowPanel2.Location = new System.Drawing.Point(3, 275);
|
||||
this.flowPanel2.Name = "flowPanel2";
|
||||
this.flowPanel2.Size = new System.Drawing.Size(694, 38);
|
||||
this.flowPanel2.TabIndex = 33;
|
||||
this.flowPanel2.Text = "flowPanel2";
|
||||
//
|
||||
// tag18
|
||||
//
|
||||
this.tag18.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag18.Image = global::AntdUIDemo.Properties.Resources.head;
|
||||
this.tag18.Location = new System.Drawing.Point(3, 3);
|
||||
this.tag18.Name = "tag18";
|
||||
this.tag18.Size = new System.Drawing.Size(126, 32);
|
||||
this.tag18.TabIndex = 0;
|
||||
this.tag18.Text = "这是Image标签";
|
||||
//
|
||||
// tag13
|
||||
//
|
||||
this.tag13.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.tag13.ImageSvg = resources.GetString("tag13.ImageSvg");
|
||||
this.tag13.Location = new System.Drawing.Point(135, 3);
|
||||
this.tag13.Name = "tag13";
|
||||
this.tag13.Size = new System.Drawing.Size(126, 32);
|
||||
this.tag13.TabIndex = 1;
|
||||
this.tag13.Text = "这是Svg标签";
|
||||
//
|
||||
// TagDemo
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
||||
@ -319,9 +319,9 @@
|
||||
this.Name = "TagDemo";
|
||||
this.Size = new System.Drawing.Size(700, 414);
|
||||
this.stackPanel1.ResumeLayout(false);
|
||||
this.flowPanel3.ResumeLayout(false);
|
||||
this.flowPanel1.ResumeLayout(false);
|
||||
this.flowPanel2.ResumeLayout(false);
|
||||
this.flowPanel1.ResumeLayout(false);
|
||||
this.flowPanel3.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
147
Views/TimelineDemo.Designer.cs
generated
Normal file
147
Views/TimelineDemo.Designer.cs
generated
Normal file
@ -0,0 +1,147 @@
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
partial class TimelineDemo
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
AntdUI.TimelineItem timelineItem1 = new AntdUI.TimelineItem();
|
||||
AntdUI.TimelineItem timelineItem2 = new AntdUI.TimelineItem();
|
||||
AntdUI.TimelineItem timelineItem3 = new AntdUI.TimelineItem();
|
||||
AntdUI.TimelineItem timelineItem4 = new AntdUI.TimelineItem();
|
||||
AntdUI.TimelineItem timelineItem5 = new AntdUI.TimelineItem();
|
||||
AntdUI.TimelineItem timelineItem6 = new AntdUI.TimelineItem();
|
||||
this.stackPanel1 = new AntdUI.StackPanel();
|
||||
this.divider1 = new AntdUI.Divider();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.timeline1 = new AntdUI.Timeline();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// stackPanel1
|
||||
//
|
||||
this.stackPanel1.Controls.Add(this.timeline1);
|
||||
this.stackPanel1.Controls.Add(this.label3);
|
||||
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, 642);
|
||||
this.stackPanel1.TabIndex = 0;
|
||||
this.stackPanel1.Text = "stackPanel1";
|
||||
this.stackPanel1.Vertical = true;
|
||||
//
|
||||
// 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 = 30;
|
||||
//
|
||||
// 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 = 29;
|
||||
this.label2.Text = "垂直展示的时间流信息。";
|
||||
//
|
||||
// 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 = 28;
|
||||
this.label1.Text = "Timeline 时间轴";
|
||||
//
|
||||
// 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(3, 97);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(694, 24);
|
||||
this.label3.TabIndex = 31;
|
||||
this.label3.Text = "基本用法";
|
||||
//
|
||||
// timeline1
|
||||
//
|
||||
this.timeline1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.timeline1.FontDescription = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
timelineItem1.Description = "这是一段描述";
|
||||
timelineItem1.Text = "Create a services site 2015-09-01";
|
||||
timelineItem1.Type = AntdUI.TTypeMini.Success;
|
||||
timelineItem2.Description = "这是一段描述";
|
||||
timelineItem2.Text = "Create a services site 2015-09-01";
|
||||
timelineItem2.Type = AntdUI.TTypeMini.Warn;
|
||||
timelineItem3.Description = "这是一段描述";
|
||||
timelineItem3.Text = "Solve initial network problems 1";
|
||||
timelineItem3.Type = AntdUI.TTypeMini.Error;
|
||||
timelineItem4.Description = "这是一段描述";
|
||||
timelineItem4.Text = "Technical testing 1";
|
||||
timelineItem5.Description = "";
|
||||
timelineItem5.Text = "Solve initial network problems 1";
|
||||
timelineItem5.Type = AntdUI.TTypeMini.Default;
|
||||
timelineItem6.Text = "Solve initial network problems 1\r\nSolve initial network problems 2";
|
||||
timelineItem6.Type = AntdUI.TTypeMini.Info;
|
||||
this.timeline1.Items.Add(timelineItem1);
|
||||
this.timeline1.Items.Add(timelineItem2);
|
||||
this.timeline1.Items.Add(timelineItem3);
|
||||
this.timeline1.Items.Add(timelineItem4);
|
||||
this.timeline1.Items.Add(timelineItem5);
|
||||
this.timeline1.Items.Add(timelineItem6);
|
||||
this.timeline1.Location = new System.Drawing.Point(3, 127);
|
||||
this.timeline1.Name = "timeline1";
|
||||
this.timeline1.Size = new System.Drawing.Size(694, 432);
|
||||
this.timeline1.TabIndex = 32;
|
||||
this.timeline1.Text = "timeline1";
|
||||
//
|
||||
// TimelineDemo
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
||||
this.Controls.Add(this.stackPanel1);
|
||||
this.Name = "TimelineDemo";
|
||||
this.Size = new System.Drawing.Size(700, 642);
|
||||
this.stackPanel1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private AntdUI.StackPanel stackPanel1;
|
||||
private AntdUI.Divider divider1;
|
||||
private AntdUI.Label label2;
|
||||
private AntdUI.Label label1;
|
||||
private AntdUI.Label label3;
|
||||
private AntdUI.Timeline timeline1;
|
||||
}
|
||||
}
|
||||
20
Views/TimelineDemo.cs
Normal file
20
Views/TimelineDemo.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
public partial class TimelineDemo: UserControl
|
||||
{
|
||||
public TimelineDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Views/TimelineDemo.resx
Normal file
120
Views/TimelineDemo.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
BIN
assets/screenshots/Table.png
Normal file
BIN
assets/screenshots/Table.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 857 KiB |
BIN
assets/screenshots/Tabs.png
Normal file
BIN
assets/screenshots/Tabs.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 727 KiB |
BIN
assets/screenshots/Tag.png
Normal file
BIN
assets/screenshots/Tag.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 739 KiB |
BIN
assets/screenshots/Timeline.png
Normal file
BIN
assets/screenshots/Timeline.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 745 KiB |
Loading…
x
Reference in New Issue
Block a user