stackpanel添加控件位置调整,progress设置去除文本显示,gridpanel设置固定值布局

This commit is contained in:
czz_y 2024-10-24 17:39:38 +08:00
parent c3cf8bc2e3
commit cfa8c6a198
6 changed files with 7 additions and 11 deletions

View File

@ -157,7 +157,7 @@
this.input_span.PlaceholderText = "分号隔开为行,空格隔开为列(可设置固定值或百分号)"; this.input_span.PlaceholderText = "分号隔开为行,空格隔开为列(可设置固定值或百分号)";
this.input_span.Size = new System.Drawing.Size(165, 45); this.input_span.Size = new System.Drawing.Size(165, 45);
this.input_span.TabIndex = 5; this.input_span.TabIndex = 5;
this.input_span.Text = "50% 50%;50% 50%"; this.input_span.Text = "50% 50%;20% 80%;150 200";
this.input_span.WaveSize = 0; this.input_span.WaveSize = 0;
// //
// label3 // label3

View File

@ -24,7 +24,7 @@ namespace AntdUIDemo.Views
private void InitData() private void InitData()
{ {
input_gap.Value = 0; input_gap.Value = 0;
input_span.Text = "50% 50%;50% 50%"; input_span.Text = "50% 50%;20% 80%;150 200";
} }
private void BindEventHandler() private void BindEventHandler()

View File

@ -188,8 +188,8 @@
this.progress12.Steps = 50; this.progress12.Steps = 50;
this.progress12.StepSize = 5; this.progress12.StepSize = 5;
this.progress12.TabIndex = 60; this.progress12.TabIndex = 60;
this.progress12.Text = "progress12";
this.progress12.TextUnit = ""; this.progress12.TextUnit = "";
this.progress12.UseSystemText = true;
this.progress12.Value = 0.3F; this.progress12.Value = 0.3F;
// //
// label7 // label7
@ -200,7 +200,6 @@
this.label7.Size = new System.Drawing.Size(694, 24); this.label7.Size = new System.Drawing.Size(694, 24);
this.label7.TabIndex = 59; this.label7.TabIndex = 59;
this.label7.Text = "步骤进度条"; this.label7.Text = "步骤进度条";
this.label7.TooltipConfig = null;
// //
// progress13 // progress13
// //
@ -221,7 +220,6 @@
this.label6.Size = new System.Drawing.Size(694, 24); this.label6.Size = new System.Drawing.Size(694, 24);
this.label6.TabIndex = 56; this.label6.TabIndex = 56;
this.label6.Text = "动画铺满"; this.label6.Text = "动画铺满";
this.label6.TooltipConfig = null;
// //
// flowPanel1 // flowPanel1
// //
@ -281,7 +279,6 @@
this.label5.Size = new System.Drawing.Size(694, 24); this.label5.Size = new System.Drawing.Size(694, 24);
this.label5.TabIndex = 54; this.label5.TabIndex = 54;
this.label5.Text = "mini模式"; this.label5.Text = "mini模式";
this.label5.TooltipConfig = null;
// //
// flowPanel4 // flowPanel4
// //
@ -341,7 +338,6 @@
this.label3.Size = new System.Drawing.Size(694, 24); this.label3.Size = new System.Drawing.Size(694, 24);
this.label3.TabIndex = 52; this.label3.TabIndex = 52;
this.label3.Text = "进度圈"; this.label3.Text = "进度圈";
this.label3.TooltipConfig = null;
// //
// progress5 // progress5
// //
@ -399,6 +395,7 @@
this.progress1.Size = new System.Drawing.Size(694, 20); this.progress1.Size = new System.Drawing.Size(694, 20);
this.progress1.TabIndex = 47; this.progress1.TabIndex = 47;
this.progress1.TextUnit = ""; this.progress1.TextUnit = "";
this.progress1.UseSystemText = true;
this.progress1.Value = 0.3F; this.progress1.Value = 0.3F;
// //
// label4 // label4
@ -409,7 +406,6 @@
this.label4.Size = new System.Drawing.Size(694, 24); this.label4.Size = new System.Drawing.Size(694, 24);
this.label4.TabIndex = 46; this.label4.TabIndex = 46;
this.label4.Text = "进度条"; this.label4.Text = "进度条";
this.label4.TooltipConfig = null;
// //
// divider1 // divider1
// //
@ -426,7 +422,6 @@
this.label2.Size = new System.Drawing.Size(694, 24); this.label2.Size = new System.Drawing.Size(694, 24);
this.label2.TabIndex = 44; this.label2.TabIndex = 44;
this.label2.Text = "展示操作的当前进度。"; this.label2.Text = "展示操作的当前进度。";
this.label2.TooltipConfig = null;
// //
// label1 // label1
// //
@ -436,7 +431,6 @@
this.label1.Size = new System.Drawing.Size(694, 40); this.label1.Size = new System.Drawing.Size(694, 40);
this.label1.TabIndex = 43; this.label1.TabIndex = 43;
this.label1.Text = "Progress 进度条"; this.label1.Text = "Progress 进度条";
this.label1.TooltipConfig = null;
// //
// ProgressDemo // ProgressDemo
// //

View File

@ -41,6 +41,7 @@ namespace AntdUIDemo.Views
Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))), Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))),
}; };
stackPanel.Controls.Add(control); stackPanel.Controls.Add(control);
control.BringToFront();
} }
} }
@ -109,7 +110,7 @@ namespace AntdUIDemo.Views
if (stackPanel.Controls.Count > 0) if (stackPanel.Controls.Count > 0)
{ {
// 删除最后一个控件 // 删除最后一个控件
stackPanel.Controls.RemoveAt(stackPanel.Controls.Count - 1); stackPanel.Controls.RemoveAt(0);
} }
} }
@ -125,6 +126,7 @@ namespace AntdUIDemo.Views
Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))), Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(134))),
}; };
stackPanel.Controls.Add(control); stackPanel.Controls.Add(control);
control.BringToFront();
} }
private void ButtonCZ_Click(object sender, EventArgs e) private void ButtonCZ_Click(object sender, EventArgs e)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 KiB

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 KiB

After

Width:  |  Height:  |  Size: 330 KiB