SunnyUI/SunnyUI.Demo/Controls/FFlowLayoutPanel.cs
Sunny 5554b73a24 + UIFlowLayoutPanel:增加
* SunnyUI.Demo生成路径改为项目根目录下Bin,相关图片文件增加为资源文件
2020-09-29 17:14:17 +08:00

32 lines
716 B
C#

namespace Sunny.UI.Demo
{
public partial class FFlowLayoutPanel : UITitlePage
{
public FFlowLayoutPanel()
{
InitializeComponent();
}
public override void Init()
{
base.Init();
uiFlowLayoutPanel1.Panel.Controls.Clear();
for (int i = 0; i < 30; i++)
{
uiButton1.PerformClick();
}
}
private int index;
private void uiButton1_Click(object sender, System.EventArgs e)
{
UIButton btn = new UIButton();
btn.Text = "Button" + index++.ToString("D2");
uiFlowLayoutPanel1.Panel.Controls.Add(btn);
}
}
}