|
|
|
@ -46,8 +46,7 @@ namespace Demo.Controls
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
pageHeader1 = new AntdUI.PageHeader();
|
|
|
|
|
stackPanel1 = new AntdUI.StackPanel();
|
|
|
|
|
header1 = new AntdUI.PageHeader();
|
|
|
|
|
label1 = new AntdUI.Label();
|
|
|
|
|
input1 = new AntdUI.Input();
|
|
|
|
|
gridPanel1 = new AntdUI.GridPanel();
|
|
|
|
@ -57,51 +56,43 @@ namespace Demo.Controls
|
|
|
|
|
button3 = new AntdUI.Button();
|
|
|
|
|
button2 = new AntdUI.Button();
|
|
|
|
|
button1 = new AntdUI.Button();
|
|
|
|
|
stackPanel1.SuspendLayout();
|
|
|
|
|
tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
|
|
|
gridPanel1.SuspendLayout();
|
|
|
|
|
tableLayoutPanel1.SuspendLayout();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// pageHeader1
|
|
|
|
|
//
|
|
|
|
|
pageHeader1.Description = "精准划分区域的格栅布局容器。";
|
|
|
|
|
pageHeader1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
|
|
pageHeader1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
|
|
|
|
|
pageHeader1.LocalizationDescription = "GridPanel.Description";
|
|
|
|
|
pageHeader1.LocalizationText = "GridPanel.Text";
|
|
|
|
|
pageHeader1.Location = new System.Drawing.Point(0, 0);
|
|
|
|
|
pageHeader1.Name = "pageHeader1";
|
|
|
|
|
pageHeader1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
|
|
|
|
pageHeader1.Size = new System.Drawing.Size(1000, 75);
|
|
|
|
|
pageHeader1.TabIndex = 0;
|
|
|
|
|
pageHeader1.Text = "GridPanel 格栅布局";
|
|
|
|
|
pageHeader1.UseTitleFont = true;
|
|
|
|
|
//
|
|
|
|
|
// stackPanel1
|
|
|
|
|
//
|
|
|
|
|
stackPanel1.Controls.Add(label1);
|
|
|
|
|
stackPanel1.Controls.Add(input1);
|
|
|
|
|
stackPanel1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
|
|
stackPanel1.Location = new System.Drawing.Point(0, 75);
|
|
|
|
|
stackPanel1.Name = "stackPanel1";
|
|
|
|
|
stackPanel1.Size = new System.Drawing.Size(1000, 72);
|
|
|
|
|
stackPanel1.TabIndex = 1;
|
|
|
|
|
stackPanel1.Text = "stackPanel1";
|
|
|
|
|
// header1
|
|
|
|
|
//
|
|
|
|
|
header1.Description = "精准划分区域的格栅布局容器。";
|
|
|
|
|
header1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
|
|
header1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
|
|
|
|
|
header1.LocalizationDescription = "GridPanel.Description";
|
|
|
|
|
header1.LocalizationText = "GridPanel.Text";
|
|
|
|
|
header1.Location = new System.Drawing.Point(0, 0);
|
|
|
|
|
header1.Name = "header1";
|
|
|
|
|
header1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
|
|
|
|
header1.Size = new System.Drawing.Size(1000, 75);
|
|
|
|
|
header1.TabIndex = 0;
|
|
|
|
|
header1.Text = "GridPanel 格栅布局";
|
|
|
|
|
header1.UseTitleFont = true;
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
label1.Location = new System.Drawing.Point(530, 3);
|
|
|
|
|
label1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
|
label1.Location = new System.Drawing.Point(503, 3);
|
|
|
|
|
label1.Name = "label1";
|
|
|
|
|
label1.Size = new System.Drawing.Size(698, 66);
|
|
|
|
|
label1.Size = new System.Drawing.Size(494, 60);
|
|
|
|
|
label1.TabIndex = 1;
|
|
|
|
|
label1.Text = "以-为分解。-前为列宽属性,-后为行高属性列宽以;分组。每一组代表一行\r\n行高属性个数要与行数对应,每个数之间用空格间隔";
|
|
|
|
|
//
|
|
|
|
|
// input1
|
|
|
|
|
//
|
|
|
|
|
input1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
|
input1.Location = new System.Drawing.Point(3, 3);
|
|
|
|
|
input1.Multiline = true;
|
|
|
|
|
input1.Name = "input1";
|
|
|
|
|
input1.PrefixText = "Span属性";
|
|
|
|
|
input1.Size = new System.Drawing.Size(521, 66);
|
|
|
|
|
input1.Size = new System.Drawing.Size(494, 60);
|
|
|
|
|
input1.SuffixText = "";
|
|
|
|
|
input1.TabIndex = 0;
|
|
|
|
|
input1.Text = "10% 20%;20% 20%;30% 50%;-50% 10% 10%";
|
|
|
|
@ -116,91 +107,97 @@ namespace Demo.Controls
|
|
|
|
|
gridPanel1.Controls.Add(button2);
|
|
|
|
|
gridPanel1.Controls.Add(button1);
|
|
|
|
|
gridPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
|
gridPanel1.Location = new System.Drawing.Point(0, 147);
|
|
|
|
|
gridPanel1.Location = new System.Drawing.Point(0, 141);
|
|
|
|
|
gridPanel1.Name = "gridPanel1";
|
|
|
|
|
gridPanel1.Size = new System.Drawing.Size(1000, 653);
|
|
|
|
|
gridPanel1.Size = new System.Drawing.Size(1000, 659);
|
|
|
|
|
gridPanel1.Span = "10% 20%;20% 20%;30% 50%";
|
|
|
|
|
gridPanel1.TabIndex = 2;
|
|
|
|
|
gridPanel1.Text = "gridPanel1";
|
|
|
|
|
//
|
|
|
|
|
// button6
|
|
|
|
|
//
|
|
|
|
|
button6.BackExtend = "135, #6253E1, #04BEFE";
|
|
|
|
|
button6.Location = new System.Drawing.Point(303, 437);
|
|
|
|
|
button6.Location = new System.Drawing.Point(303, 441);
|
|
|
|
|
button6.Name = "button6";
|
|
|
|
|
button6.Size = new System.Drawing.Size(494, 211);
|
|
|
|
|
button6.Size = new System.Drawing.Size(494, 213);
|
|
|
|
|
button6.TabIndex = 5;
|
|
|
|
|
button6.Text = "button6";
|
|
|
|
|
button6.Text = "Button6";
|
|
|
|
|
button6.Type = AntdUI.TTypeMini.Primary;
|
|
|
|
|
//
|
|
|
|
|
// button5
|
|
|
|
|
//
|
|
|
|
|
button5.BackExtend = "135, #6253E1, #04BEFE";
|
|
|
|
|
button5.Location = new System.Drawing.Point(3, 437);
|
|
|
|
|
button5.Location = new System.Drawing.Point(3, 441);
|
|
|
|
|
button5.Name = "button5";
|
|
|
|
|
button5.Size = new System.Drawing.Size(294, 211);
|
|
|
|
|
button5.Size = new System.Drawing.Size(294, 213);
|
|
|
|
|
button5.TabIndex = 4;
|
|
|
|
|
button5.Text = "button5";
|
|
|
|
|
button5.Text = "Button5";
|
|
|
|
|
button5.Type = AntdUI.TTypeMini.Primary;
|
|
|
|
|
//
|
|
|
|
|
// button4
|
|
|
|
|
//
|
|
|
|
|
button4.BackExtend = "135, #6253E1, #04BEFE";
|
|
|
|
|
button4.Location = new System.Drawing.Point(203, 220);
|
|
|
|
|
button4.Location = new System.Drawing.Point(203, 222);
|
|
|
|
|
button4.Name = "button4";
|
|
|
|
|
button4.Size = new System.Drawing.Size(194, 211);
|
|
|
|
|
button4.Size = new System.Drawing.Size(194, 213);
|
|
|
|
|
button4.TabIndex = 3;
|
|
|
|
|
button4.Text = "button4";
|
|
|
|
|
button4.Text = "Button4";
|
|
|
|
|
button4.Type = AntdUI.TTypeMini.Primary;
|
|
|
|
|
//
|
|
|
|
|
// button3
|
|
|
|
|
//
|
|
|
|
|
button3.BackExtend = "135, #6253E1, #04BEFE";
|
|
|
|
|
button3.Location = new System.Drawing.Point(3, 220);
|
|
|
|
|
button3.Location = new System.Drawing.Point(3, 222);
|
|
|
|
|
button3.Name = "button3";
|
|
|
|
|
button3.Size = new System.Drawing.Size(194, 211);
|
|
|
|
|
button3.Size = new System.Drawing.Size(194, 213);
|
|
|
|
|
button3.TabIndex = 2;
|
|
|
|
|
button3.Text = "button3";
|
|
|
|
|
button3.Text = "Button3";
|
|
|
|
|
button3.Type = AntdUI.TTypeMini.Primary;
|
|
|
|
|
//
|
|
|
|
|
// button2
|
|
|
|
|
//
|
|
|
|
|
button2.BackExtend = "135, #6253E1, #04BEFE";
|
|
|
|
|
button2.Location = new System.Drawing.Point(103, 3);
|
|
|
|
|
button2.Name = "button2";
|
|
|
|
|
button2.Size = new System.Drawing.Size(194, 211);
|
|
|
|
|
button2.Size = new System.Drawing.Size(194, 213);
|
|
|
|
|
button2.TabIndex = 1;
|
|
|
|
|
button2.Text = "button2";
|
|
|
|
|
button2.Text = "Button2";
|
|
|
|
|
button2.Type = AntdUI.TTypeMini.Primary;
|
|
|
|
|
//
|
|
|
|
|
// button1
|
|
|
|
|
//
|
|
|
|
|
button1.BackExtend = "135, #6253E1, #04BEFE";
|
|
|
|
|
button1.Location = new System.Drawing.Point(3, 3);
|
|
|
|
|
button1.Name = "button1";
|
|
|
|
|
button1.Size = new System.Drawing.Size(94, 211);
|
|
|
|
|
button1.Size = new System.Drawing.Size(94, 213);
|
|
|
|
|
button1.TabIndex = 0;
|
|
|
|
|
button1.Text = "button1";
|
|
|
|
|
button1.Text = "Button1";
|
|
|
|
|
button1.Type = AntdUI.TTypeMini.Primary;
|
|
|
|
|
//
|
|
|
|
|
// tableLayoutPanel1
|
|
|
|
|
//
|
|
|
|
|
tableLayoutPanel1.ColumnCount = 2;
|
|
|
|
|
tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
|
|
|
|
tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
|
|
|
|
tableLayoutPanel1.Controls.Add(label1, 1, 0);
|
|
|
|
|
tableLayoutPanel1.Controls.Add(input1, 0, 0);
|
|
|
|
|
tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
|
|
tableLayoutPanel1.Location = new System.Drawing.Point(0, 75);
|
|
|
|
|
tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
|
|
|
tableLayoutPanel1.RowCount = 1;
|
|
|
|
|
tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
|
|
|
|
tableLayoutPanel1.Size = new System.Drawing.Size(1000, 66);
|
|
|
|
|
tableLayoutPanel1.TabIndex = 1;
|
|
|
|
|
//
|
|
|
|
|
// GridPanel
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
|
|
|
|
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
Controls.Add(gridPanel1);
|
|
|
|
|
Controls.Add(stackPanel1);
|
|
|
|
|
Controls.Add(pageHeader1);
|
|
|
|
|
Controls.Add(tableLayoutPanel1);
|
|
|
|
|
Controls.Add(header1);
|
|
|
|
|
Name = "GridPanel";
|
|
|
|
|
Size = new System.Drawing.Size(1000, 800);
|
|
|
|
|
stackPanel1.ResumeLayout(false);
|
|
|
|
|
gridPanel1.ResumeLayout(false);
|
|
|
|
|
tableLayoutPanel1.ResumeLayout(false);
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private AntdUI.PageHeader pageHeader1;
|
|
|
|
|
private AntdUI.StackPanel stackPanel1;
|
|
|
|
|
private AntdUI.PageHeader header1;
|
|
|
|
|
private AntdUI.Input input1;
|
|
|
|
|
private AntdUI.Label label1;
|
|
|
|
|
private AntdUI.GridPanel gridPanel1;
|
|
|
|
@ -210,5 +207,6 @@ namespace Demo.Controls
|
|
|
|
|
private AntdUI.Button button1;
|
|
|
|
|
private AntdUI.Button button6;
|
|
|
|
|
private AntdUI.Button button5;
|
|
|
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|