添加Tabs, Tag

This commit is contained in:
czz_y 2024-09-01 18:41:20 +08:00
parent 9b0ea239b7
commit 473061a7f7
12 changed files with 984 additions and 206 deletions

View File

@ -60,4 +60,8 @@
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Views\Test\" />
</ItemGroup>
</Project>

View File

@ -235,6 +235,10 @@ namespace AntdUIDemo
case "Table":
control = new TableDemo(this);
break;
case "Tabs":
control = new TabsDemo(this);
break;
case "Drawer":
control = new DrawerDemo(this);
break;
@ -242,8 +246,6 @@ namespace AntdUIDemo
if (control != null)
{
AutoDpi(control);
//测试日志归档
LoggerHelper.Logger.Error(new Exception($"{name} Clicked."),"Menu");
panel_content.Controls.Add(control);
}
}

View File

@ -8,7 +8,6 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AntdUI;
using AntdUIDemo.Views.Test;
namespace AntdUIDemo.Views
{

View File

@ -22,18 +22,19 @@ namespace AntdUIDemo.Views
private void InitData()
{
select_custom.Items.Clear();
select_custom.Items.AddRange( new object[]
{
new SelectItem("在线状态"){
select_custom.Items.AddRange([
new SelectItem("在线状态"){
Online = 1,
},
new SelectItem("禁用状态"){
new SelectItem("禁用状态"){
Enable = false,
},
new DividerSelectItem(),
new SelectItem("图标"){
IconSvg = "<svg viewBox=\"64 64 896 896\" focusable=\"false\" data-icon=\"search\" width=\"1em\" height=\"1em\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z\"></path></svg>",
new SelectItem("红色"){
IconSvg = "<svg t=\"1725181270538\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"4470\" width=\"200\" height=\"200\"><path d=\"M85.333333 85.333333m53.333334 0l746.666666 0q53.333333 0 53.333334 53.333334l0 746.666666q0 53.333333-53.333334 53.333334l-746.666666 0q-53.333333 0-53.333334-53.333334l0-746.666666q0-53.333333 53.333334-53.333334Z\" fill=\"#ff0000\" p-id=\"4471\"></path></svg>",
},
new SelectItem("子菜单")
{
Sub = new List<object>
@ -47,7 +48,7 @@ namespace AntdUIDemo.Views
{
SubText = "子文本"
}
});
]);
select_custom.SelectedIndex = 0;
}

View File

@ -125,8 +125,6 @@ namespace AntdUIDemo.Views
AntdUI.Modal.open(new AntdUI.Modal.Config(window, "", form, TType.None)
{
BtnHeight = 0,
Keyboard = false,
MaskClosable = false,
});
if (form.submit)
{
@ -256,9 +254,9 @@ namespace AntdUIDemo.Views
private void InitData()
{
antList = new AntList<User>(3);
antList = new AntList<User>(10);
for (int i = 0; i < 3; i++)
for (int i = 0; i < 10; i++)
{
antList.Add(new User
{

439
Views/TabsDemo.Designer.cs generated Normal file
View File

@ -0,0 +1,439 @@
namespace AntdUIDemo.Views
{
partial class TabsDemo
{
/// <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.Tabs.StyleLine styleLine1 = new AntdUI.Tabs.StyleLine();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TabsDemo));
AntdUI.Tabs.StyleCard styleCard1 = new AntdUI.Tabs.StyleCard();
AntdUI.Tabs.StyleLine styleLine2 = new AntdUI.Tabs.StyleLine();
this.stackPanel1 = new AntdUI.StackPanel();
this.tabs3 = new AntdUI.Tabs();
this.tabPage5 = new AntdUI.TabPage();
this.label10 = new AntdUI.Label();
this.tabPage8 = new AntdUI.TabPage();
this.label13 = new AntdUI.Label();
this.tabPage9 = new AntdUI.TabPage();
this.label14 = new AntdUI.Label();
this.label9 = new AntdUI.Label();
this.tabs_close = new AntdUI.Tabs();
this.tabPage2 = new AntdUI.TabPage();
this.label12 = new AntdUI.Label();
this.tabPage3 = new AntdUI.TabPage();
this.label11 = new AntdUI.Label();
this.tabPage4 = new AntdUI.TabPage();
this.label8 = new AntdUI.Label();
this.label7 = new AntdUI.Label();
this.tabs1 = new AntdUI.Tabs();
this.tabPage1 = new AntdUI.TabPage();
this.label4 = new AntdUI.Label();
this.tabPage6 = new AntdUI.TabPage();
this.label5 = new AntdUI.Label();
this.tabPage7 = new AntdUI.TabPage();
this.label6 = new AntdUI.Label();
this.label3 = new AntdUI.Label();
this.divider1 = new AntdUI.Divider();
this.label2 = new AntdUI.Label();
this.label1 = new AntdUI.Label();
this.stackPanel1.SuspendLayout();
this.tabs3.SuspendLayout();
this.tabPage5.SuspendLayout();
this.tabPage8.SuspendLayout();
this.tabPage9.SuspendLayout();
this.tabs_close.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.tabPage4.SuspendLayout();
this.tabs1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage6.SuspendLayout();
this.tabPage7.SuspendLayout();
this.SuspendLayout();
//
// stackPanel1
//
this.stackPanel1.Controls.Add(this.tabs3);
this.stackPanel1.Controls.Add(this.label9);
this.stackPanel1.Controls.Add(this.tabs_close);
this.stackPanel1.Controls.Add(this.label7);
this.stackPanel1.Controls.Add(this.tabs1);
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, 565);
this.stackPanel1.TabIndex = 0;
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
//
// tabs3
//
this.tabs3.Centered = true;
this.tabs3.Cursor = System.Windows.Forms.Cursors.Hand;
this.tabs3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs3.Gap = 12;
this.tabs3.Location = new System.Drawing.Point(3, 439);
this.tabs3.Name = "tabs3";
this.tabs3.Pages.Add(this.tabPage5);
this.tabs3.Pages.Add(this.tabPage8);
this.tabs3.Pages.Add(this.tabPage9);
this.tabs3.Size = new System.Drawing.Size(694, 120);
this.tabs3.Style = styleLine1;
this.tabs3.TabIndex = 29;
this.tabs3.Text = "tabs3";
//
// tabPage5
//
this.tabPage5.Badge = "99";
this.tabPage5.Controls.Add(this.label10);
this.tabPage5.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tabPage5.IconSvg = resources.GetString("tabPage5.IconSvg");
this.tabPage5.Location = new System.Drawing.Point(3, 38);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Size = new System.Drawing.Size(688, 79);
this.tabPage5.TabIndex = 28;
this.tabPage5.Text = "Tab1";
//
// label10
//
this.label10.Dock = System.Windows.Forms.DockStyle.Top;
this.label10.Location = new System.Drawing.Point(0, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(688, 23);
this.label10.TabIndex = 0;
this.label10.Text = "Content of Tab Pane 1";
//
// tabPage8
//
this.tabPage8.Controls.Add(this.label13);
this.tabPage8.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage8.Location = new System.Drawing.Point(3, 38);
this.tabPage8.Name = "tabPage8";
this.tabPage8.Size = new System.Drawing.Size(688, 89);
this.tabPage8.TabIndex = 0;
this.tabPage8.Text = "Tab2";
//
// label13
//
this.label13.Dock = System.Windows.Forms.DockStyle.Top;
this.label13.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.label13.Location = new System.Drawing.Point(0, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(688, 23);
this.label13.TabIndex = 3;
this.label13.Text = "Content of Tab Pane 2";
//
// tabPage9
//
this.tabPage9.Controls.Add(this.label14);
this.tabPage9.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage9.Location = new System.Drawing.Point(3, 38);
this.tabPage9.Name = "tabPage9";
this.tabPage9.Size = new System.Drawing.Size(688, 89);
this.tabPage9.TabIndex = 0;
this.tabPage9.Text = "Tab3";
//
// label14
//
this.label14.Dock = System.Windows.Forms.DockStyle.Top;
this.label14.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.label14.Location = new System.Drawing.Point(0, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(688, 23);
this.label14.TabIndex = 4;
this.label14.Text = "Content of Tab Pane 3";
//
// 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(3, 409);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(694, 24);
this.label9.TabIndex = 27;
this.label9.Text = "居中位置";
//
// tabs_close
//
this.tabs_close.Cursor = System.Windows.Forms.Cursors.Hand;
this.tabs_close.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs_close.Gap = 12;
this.tabs_close.Location = new System.Drawing.Point(3, 283);
this.tabs_close.Name = "tabs_close";
this.tabs_close.Pages.Add(this.tabPage2);
this.tabs_close.Pages.Add(this.tabPage3);
this.tabs_close.Pages.Add(this.tabPage4);
this.tabs_close.Size = new System.Drawing.Size(694, 120);
styleCard1.Closable = true;
styleCard1.Gap = 6;
this.tabs_close.Style = styleCard1;
this.tabs_close.TabIndex = 26;
this.tabs_close.Text = "tabs2";
this.tabs_close.Type = AntdUI.TabType.Card;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.label12);
this.tabPage2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage2.Location = new System.Drawing.Point(3, 38);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(688, 79);
this.tabPage2.TabIndex = 0;
this.tabPage2.Text = "Tab1";
//
// label12
//
this.label12.Dock = System.Windows.Forms.DockStyle.Top;
this.label12.Location = new System.Drawing.Point(0, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(688, 23);
this.label12.TabIndex = 1;
this.label12.Text = "Content of Tab Pane 1";
//
// tabPage3
//
this.tabPage3.Controls.Add(this.label11);
this.tabPage3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage3.Location = new System.Drawing.Point(3, 38);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Size = new System.Drawing.Size(688, 89);
this.tabPage3.TabIndex = 0;
this.tabPage3.Text = "Tab2";
//
// label11
//
this.label11.Dock = System.Windows.Forms.DockStyle.Top;
this.label11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.label11.Location = new System.Drawing.Point(0, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(688, 23);
this.label11.TabIndex = 2;
this.label11.Text = "Content of Tab Pane 2";
//
// tabPage4
//
this.tabPage4.Controls.Add(this.label8);
this.tabPage4.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.tabPage4.Location = new System.Drawing.Point(3, 38);
this.tabPage4.Name = "tabPage4";
this.tabPage4.Size = new System.Drawing.Size(688, 89);
this.tabPage4.TabIndex = 0;
this.tabPage4.Text = "Tab3";
//
// label8
//
this.label8.Dock = System.Windows.Forms.DockStyle.Top;
this.label8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.label8.Location = new System.Drawing.Point(0, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(688, 23);
this.label8.TabIndex = 3;
this.label8.Text = "Content of Tab Pane 3";
//
// 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, 253);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(694, 24);
this.label7.TabIndex = 24;
this.label7.Text = "卡片样式";
//
// tabs1
//
this.tabs1.Cursor = System.Windows.Forms.Cursors.Hand;
this.tabs1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
this.tabs1.Gap = 12;
this.tabs1.Location = new System.Drawing.Point(3, 127);
this.tabs1.Name = "tabs1";
this.tabs1.Pages.Add(this.tabPage1);
this.tabs1.Pages.Add(this.tabPage6);
this.tabs1.Pages.Add(this.tabPage7);
this.tabs1.Size = new System.Drawing.Size(694, 120);
this.tabs1.Style = styleLine2;
this.tabs1.TabIndex = 23;
this.tabs1.Text = "tabs1";
//
// tabPage1
//
this.tabPage1.Controls.Add(this.label4);
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.IconSvg = resources.GetString("tabPage1.IconSvg");
this.tabPage1.Location = new System.Drawing.Point(3, 38);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(688, 79);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Tab1";
//
// label4
//
this.label4.Dock = System.Windows.Forms.DockStyle.Top;
this.label4.Location = new System.Drawing.Point(0, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(688, 23);
this.label4.TabIndex = 0;
this.label4.Text = "Content of Tab Pane 1";
//
// tabPage6
//
this.tabPage6.Controls.Add(this.label5);
this.tabPage6.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage6.Location = new System.Drawing.Point(3, 38);
this.tabPage6.Name = "tabPage6";
this.tabPage6.Size = new System.Drawing.Size(688, 89);
this.tabPage6.TabIndex = 0;
this.tabPage6.Text = "Tab2";
//
// label5
//
this.label5.Dock = System.Windows.Forms.DockStyle.Top;
this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.label5.Location = new System.Drawing.Point(0, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(688, 23);
this.label5.TabIndex = 1;
this.label5.Text = "Content of Tab Pane 2";
//
// tabPage7
//
this.tabPage7.Controls.Add(this.label6);
this.tabPage7.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabPage7.Location = new System.Drawing.Point(3, 38);
this.tabPage7.Name = "tabPage7";
this.tabPage7.Size = new System.Drawing.Size(688, 89);
this.tabPage7.TabIndex = 0;
this.tabPage7.Text = "Tab3";
//
// label6
//
this.label6.Dock = System.Windows.Forms.DockStyle.Top;
this.label6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
this.label6.Location = new System.Drawing.Point(0, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(688, 23);
this.label6.TabIndex = 2;
this.label6.Text = "Content of Tab Pane 3";
//
// 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 = 22;
this.label3.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 = 7;
//
// 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 = 6;
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 = 5;
this.label1.Text = "Tabs 标签页";
//
// TabsDemo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.stackPanel1);
this.Name = "TabsDemo";
this.Size = new System.Drawing.Size(700, 565);
this.stackPanel1.ResumeLayout(false);
this.tabs3.ResumeLayout(false);
this.tabPage5.ResumeLayout(false);
this.tabPage8.ResumeLayout(false);
this.tabPage9.ResumeLayout(false);
this.tabs_close.ResumeLayout(false);
this.tabPage2.ResumeLayout(false);
this.tabPage3.ResumeLayout(false);
this.tabPage4.ResumeLayout(false);
this.tabs1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage6.ResumeLayout(false);
this.tabPage7.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.Tabs tabs1;
private AntdUI.TabPage tabPage1;
private AntdUI.Label label4;
private AntdUI.Label label7;
private AntdUI.Tabs tabs_close;
private AntdUI.Tabs tabs3;
private AntdUI.TabPage tabPage5;
private AntdUI.Label label10;
private AntdUI.Label label9;
private AntdUI.TabPage tabPage2;
private AntdUI.TabPage tabPage3;
private AntdUI.TabPage tabPage4;
private AntdUI.TabPage tabPage6;
private AntdUI.TabPage tabPage7;
private AntdUI.TabPage tabPage8;
private AntdUI.TabPage tabPage9;
private AntdUI.Label label5;
private AntdUI.Label label6;
private AntdUI.Label label8;
private AntdUI.Label label11;
private AntdUI.Label label12;
private AntdUI.Label label13;
private AntdUI.Label label14;
}
}

39
Views/TabsDemo.cs Normal file
View File

@ -0,0 +1,39 @@
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 TabsDemo : UserControl
{
private AntdUI.Window window;
public TabsDemo(AntdUI.Window _window)
{
window = _window;
InitializeComponent();
// 绑定事件
BindEventHandler();
}
private void BindEventHandler()
{
tabs_close.ClosingPage += Tabs_close_ClosingPage;
}
private bool Tabs_close_ClosingPage(object sender, AntdUI.ClosingPageEventArgs e)
{
if(tabs_close.Pages.Count == 1)
{
AntdUI.Message.warn(window, "至少保留一个页面", autoClose: 3);
return false;
}
return true;
}
}
}

126
Views/TabsDemo.resx Normal file
View File

@ -0,0 +1,126 @@
<?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>
<data name="tabPage5.IconSvg" xml:space="preserve">
<value>&lt;svg t="1725182478452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5848" width="200" height="200"&gt;&lt;path d="M836.608 675.84q41.984 59.392 96.256 76.8-23.552 72.704-74.752 151.552-78.848 118.784-155.648 118.784-28.672 0-84.992-19.456-52.224-19.456-91.136-19.456t-86.016 20.48q-49.152 19.456-80.896 19.456-92.16 0-181.248-156.672-89.088-154.624-89.088-304.128 0-138.24 67.584-226.304 69.632-88.064 172.032-88.064 22.528 0 50.176 5.632t57.344 20.992q31.744 17.408 52.224 24.064t31.744 6.656q13.312 0 40.96-6.144t55.296-22.528q29.696-16.384 51.2-24.576t44.032-8.192q71.68 0 129.024 38.912 30.72 20.48 62.464 60.416-47.104 40.96-68.608 71.68-39.936 57.344-39.936 124.928 0 74.752 41.984 135.168z m-205.824-478.208q-35.84 33.792-65.536 44.032-10.24 3.072-26.112 5.632t-36.352 4.608q1.024-90.112 47.104-155.648T701.44 6.144q2.048 10.24 3.072 14.336v11.264q0 36.864-17.408 82.944-18.432 45.056-56.32 82.944z" fill="#272636" p-id="5849"&gt;&lt;/path&gt;&lt;/svg&gt;</value>
</data>
<data name="tabPage1.IconSvg" xml:space="preserve">
<value>&lt;svg t="1725182478452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5848" width="200" height="200"&gt;&lt;path d="M836.608 675.84q41.984 59.392 96.256 76.8-23.552 72.704-74.752 151.552-78.848 118.784-155.648 118.784-28.672 0-84.992-19.456-52.224-19.456-91.136-19.456t-86.016 20.48q-49.152 19.456-80.896 19.456-92.16 0-181.248-156.672-89.088-154.624-89.088-304.128 0-138.24 67.584-226.304 69.632-88.064 172.032-88.064 22.528 0 50.176 5.632t57.344 20.992q31.744 17.408 52.224 24.064t31.744 6.656q13.312 0 40.96-6.144t55.296-22.528q29.696-16.384 51.2-24.576t44.032-8.192q71.68 0 129.024 38.912 30.72 20.48 62.464 60.416-47.104 40.96-68.608 71.68-39.936 57.344-39.936 124.928 0 74.752 41.984 135.168z m-205.824-478.208q-35.84 33.792-65.536 44.032-10.24 3.072-26.112 5.632t-36.352 4.608q1.024-90.112 47.104-155.648T701.44 6.144q2.048 10.24 3.072 14.336v11.264q0 36.864-17.408 82.944-18.432 45.056-56.32 82.944z" fill="#272636" p-id="5849"&gt;&lt;/path&gt;&lt;/svg&gt;</value>
</data>
</root>

356
Views/TagDemo.Designer.cs generated Normal file
View File

@ -0,0 +1,356 @@
namespace AntdUIDemo.Views
{
partial class TagDemo
{
/// <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()
{
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.flowPanel1 = new AntdUI.FlowPanel();
this.tag7 = new AntdUI.Tag();
this.tag8 = new AntdUI.Tag();
this.tag9 = new AntdUI.Tag();
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.stackPanel1.SuspendLayout();
this.flowPanel3.SuspendLayout();
this.flowPanel1.SuspendLayout();
this.flowPanel2.SuspendLayout();
this.SuspendLayout();
//
// stackPanel1
//
this.stackPanel1.Controls.Add(this.flowPanel2);
this.stackPanel1.Controls.Add(this.label5);
this.stackPanel1.Controls.Add(this.flowPanel1);
this.stackPanel1.Controls.Add(this.label4);
this.stackPanel1.Controls.Add(this.flowPanel3);
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, 414);
this.stackPanel1.TabIndex = 0;
this.stackPanel1.Text = "stackPanel1";
this.stackPanel1.Vertical = true;
//
// 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 = 28;
this.label3.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 = 27;
//
// 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 = 26;
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 = 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;
this.Controls.Add(this.stackPanel1);
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.ResumeLayout(false);
}
#endregion
private AntdUI.StackPanel stackPanel1;
private AntdUI.Label label3;
private AntdUI.Divider divider1;
private AntdUI.Label label2;
private AntdUI.Label label1;
private AntdUI.FlowPanel flowPanel3;
private AntdUI.Tag tag1;
private AntdUI.Tag tag3;
private AntdUI.Tag tag2;
private AntdUI.Tag tag4;
private AntdUI.Tag tag6;
private AntdUI.Tag tag5;
private AntdUI.FlowPanel flowPanel1;
private AntdUI.Tag tag7;
private AntdUI.Tag tag8;
private AntdUI.Tag tag9;
private AntdUI.Tag tag10;
private AntdUI.Tag tag11;
private AntdUI.Tag tag12;
private AntdUI.Label label4;
private AntdUI.Label label5;
private AntdUI.FlowPanel flowPanel2;
private AntdUI.Tag tag18;
private AntdUI.Tag tag13;
}
}

View File

@ -8,11 +8,11 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AntdUIDemo.Views.Test
namespace AntdUIDemo.Views
{
public partial class TestDemo : UserControl
public partial class TagDemo : UserControl
{
public TestDemo()
public TagDemo()
{
InitializeComponent();
}

View File

@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="tag13.ImageSvg" xml:space="preserve">
<value>&lt;svg t="1725182478452" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5848" width="200" height="200"&gt;&lt;path d="M836.608 675.84q41.984 59.392 96.256 76.8-23.552 72.704-74.752 151.552-78.848 118.784-155.648 118.784-28.672 0-84.992-19.456-52.224-19.456-91.136-19.456t-86.016 20.48q-49.152 19.456-80.896 19.456-92.16 0-181.248-156.672-89.088-154.624-89.088-304.128 0-138.24 67.584-226.304 69.632-88.064 172.032-88.064 22.528 0 50.176 5.632t57.344 20.992q31.744 17.408 52.224 24.064t31.744 6.656q13.312 0 40.96-6.144t55.296-22.528q29.696-16.384 51.2-24.576t44.032-8.192q71.68 0 129.024 38.912 30.72 20.48 62.464 60.416-47.104 40.96-68.608 71.68-39.936 57.344-39.936 124.928 0 74.752 41.984 135.168z m-205.824-478.208q-35.84 33.792-65.536 44.032-10.24 3.072-26.112 5.632t-36.352 4.608q1.024-90.112 47.104-155.648T701.44 6.144q2.048 10.24 3.072 14.336v11.264q0 36.864-17.408 82.944-18.432 45.056-56.32 82.944z" fill="#272636" p-id="5849"&gt;&lt;/path&gt;&lt;/svg&gt;</value>
</data>
</root>

View File

@ -1,189 +0,0 @@
namespace AntdUIDemo.Views.Test
{
partial class TestDemo
{
/// <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()
{
this.flowPanel1 = new AntdUI.FlowPanel();
this.button1 = new AntdUI.Button();
this.button2 = new AntdUI.Button();
this.button3 = new AntdUI.Button();
this.button4 = new AntdUI.Button();
this.button5 = new AntdUI.Button();
this.button6 = new AntdUI.Button();
this.button7 = new AntdUI.Button();
this.button8 = new AntdUI.Button();
this.button9 = new AntdUI.Button();
this.button10 = new AntdUI.Button();
this.flowPanel1.SuspendLayout();
this.SuspendLayout();
//
// flowPanel1
//
this.flowPanel1.Controls.Add(this.button10);
this.flowPanel1.Controls.Add(this.button9);
this.flowPanel1.Controls.Add(this.button8);
this.flowPanel1.Controls.Add(this.button7);
this.flowPanel1.Controls.Add(this.button6);
this.flowPanel1.Controls.Add(this.button5);
this.flowPanel1.Controls.Add(this.button4);
this.flowPanel1.Controls.Add(this.button3);
this.flowPanel1.Controls.Add(this.button2);
this.flowPanel1.Controls.Add(this.button1);
this.flowPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowPanel1.Location = new System.Drawing.Point(0, 0);
this.flowPanel1.Name = "flowPanel1";
this.flowPanel1.Size = new System.Drawing.Size(500, 257);
this.flowPanel1.TabIndex = 0;
this.flowPanel1.Text = "flowPanel1";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(13, 3);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(114, 40);
this.button1.TabIndex = 0;
this.button1.Text = "Button";
this.button1.Type = AntdUI.TTypeMini.Primary;
//
// button2
//
this.button2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(133, 3);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(114, 40);
this.button2.TabIndex = 1;
this.button2.Text = "Button";
this.button2.Type = AntdUI.TTypeMini.Primary;
//
// button3
//
this.button3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(253, 3);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(114, 40);
this.button3.TabIndex = 2;
this.button3.Text = "Button";
this.button3.Type = AntdUI.TTypeMini.Primary;
//
// button4
//
this.button4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button4.Location = new System.Drawing.Point(373, 3);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(114, 40);
this.button4.TabIndex = 3;
this.button4.Text = "Button";
this.button4.Type = AntdUI.TTypeMini.Primary;
//
// button5
//
this.button5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button5.Location = new System.Drawing.Point(13, 49);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(114, 40);
this.button5.TabIndex = 4;
this.button5.Text = "Button";
this.button5.Type = AntdUI.TTypeMini.Primary;
//
// button6
//
this.button6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button6.Location = new System.Drawing.Point(133, 49);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(114, 40);
this.button6.TabIndex = 5;
this.button6.Text = "Button";
this.button6.Type = AntdUI.TTypeMini.Primary;
//
// button7
//
this.button7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button7.Location = new System.Drawing.Point(253, 49);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(114, 40);
this.button7.TabIndex = 6;
this.button7.Text = "Button";
this.button7.Type = AntdUI.TTypeMini.Primary;
//
// button8
//
this.button8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button8.Location = new System.Drawing.Point(373, 49);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(114, 40);
this.button8.TabIndex = 7;
this.button8.Text = "Button";
this.button8.Type = AntdUI.TTypeMini.Primary;
//
// button9
//
this.button9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button9.Location = new System.Drawing.Point(13, 95);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(114, 40);
this.button9.TabIndex = 8;
this.button9.Text = "Button";
this.button9.Type = AntdUI.TTypeMini.Primary;
//
// button10
//
this.button10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button10.Location = new System.Drawing.Point(133, 95);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(114, 40);
this.button10.TabIndex = 9;
this.button10.Text = "Button";
this.button10.Type = AntdUI.TTypeMini.Primary;
//
// TestDemo
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.Controls.Add(this.flowPanel1);
this.Name = "TestDemo";
this.Size = new System.Drawing.Size(500, 257);
this.flowPanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private AntdUI.FlowPanel flowPanel1;
private AntdUI.Button button4;
private AntdUI.Button button3;
private AntdUI.Button button2;
private AntdUI.Button button1;
private AntdUI.Button button10;
private AntdUI.Button button9;
private AntdUI.Button button8;
private AntdUI.Button button7;
private AntdUI.Button button6;
private AntdUI.Button button5;
}
}