diff --git a/MainWindow.cs b/MainWindow.cs index 9fc5f55..1cd6e5f 100644 --- a/MainWindow.cs +++ b/MainWindow.cs @@ -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; diff --git a/README.md b/README.md index 25964c7..0efc668 100644 --- a/README.md +++ b/README.md @@ -106,9 +106,13 @@ #### Segmented 分段控制器 ![Segmented](assets/screenshots/Segmented.png) #### Table 表格 +![Table](assets/screenshots/Table.png) #### Tabs 标签页 +![Tabs](assets/screenshots/Tabs.png) #### Tag 标签 +![Tag](assets/screenshots/Tag.png) #### Timeline 时间轴 +![Timeline](assets/screenshots/Timeline.png) #### Tooltip 文字提示 #### Tree 树形控件 diff --git a/Views/TagDemo.Designer.cs b/Views/TagDemo.Designer.cs index 4023d40..315cf37 100644 --- a/Views/TagDemo.Designer.cs +++ b/Views/TagDemo.Designer.cs @@ -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); } diff --git a/Views/TimelineDemo.Designer.cs b/Views/TimelineDemo.Designer.cs new file mode 100644 index 0000000..71f50e6 --- /dev/null +++ b/Views/TimelineDemo.Designer.cs @@ -0,0 +1,147 @@ +namespace AntdUIDemo.Views +{ + partial class TimelineDemo + { + /// + /// 必需的设计器变量。 + /// + 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() + { + 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; + } +} diff --git a/Views/TimelineDemo.cs b/Views/TimelineDemo.cs new file mode 100644 index 0000000..87cc717 --- /dev/null +++ b/Views/TimelineDemo.cs @@ -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(); + } + } +} diff --git a/Views/TimelineDemo.resx b/Views/TimelineDemo.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Views/TimelineDemo.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/Table.png b/assets/screenshots/Table.png new file mode 100644 index 0000000..5456f72 Binary files /dev/null and b/assets/screenshots/Table.png differ diff --git a/assets/screenshots/Tabs.png b/assets/screenshots/Tabs.png new file mode 100644 index 0000000..6d92954 Binary files /dev/null and b/assets/screenshots/Tabs.png differ diff --git a/assets/screenshots/Tag.png b/assets/screenshots/Tag.png new file mode 100644 index 0000000..4527f3d Binary files /dev/null and b/assets/screenshots/Tag.png differ diff --git a/assets/screenshots/Timeline.png b/assets/screenshots/Timeline.png new file mode 100644 index 0000000..20a715c Binary files /dev/null and b/assets/screenshots/Timeline.png differ