* UIFlowLayoutPanel:增加函数

This commit is contained in:
Sunny 2020-09-29 17:27:24 +08:00
parent 5554b73a24
commit 58089ed736
5 changed files with 3 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -12,7 +12,8 @@
public override void Init()
{
base.Init();
uiFlowLayoutPanel1.Panel.Controls.Clear();
uiFlowLayoutPanel1.Clear();
index = 0;
for (int i = 0; i < 30; i++)
{
@ -25,7 +26,7 @@
{
UIButton btn = new UIButton();
btn.Text = "Button" + index++.ToString("D2");
uiFlowLayoutPanel1.Panel.Controls.Add(btn);
uiFlowLayoutPanel1.AddControl(btn);
}
}
}

View File

@ -85,11 +85,6 @@ namespace Sunny.UI.Demo
}
}
private void FMain_WindowStateChange(object sender, FormWindowState state)
{
state.ConsoleWriteLine("WindowState");
}
private void FMain_Selecting(object sender, TabControlCancelEventArgs e, UIPage page)
{
page?.Text.ConsoleWriteLine();