* UIFlowLayoutPanel:增加函数
This commit is contained in:
parent
5554b73a24
commit
58089ed736
Binary file not shown.
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
@ -12,7 +12,8 @@
|
|||||||
public override void Init()
|
public override void Init()
|
||||||
{
|
{
|
||||||
base.Init();
|
base.Init();
|
||||||
uiFlowLayoutPanel1.Panel.Controls.Clear();
|
uiFlowLayoutPanel1.Clear();
|
||||||
|
index = 0;
|
||||||
|
|
||||||
for (int i = 0; i < 30; i++)
|
for (int i = 0; i < 30; i++)
|
||||||
{
|
{
|
||||||
@ -25,7 +26,7 @@
|
|||||||
{
|
{
|
||||||
UIButton btn = new UIButton();
|
UIButton btn = new UIButton();
|
||||||
btn.Text = "Button" + index++.ToString("D2");
|
btn.Text = "Button" + index++.ToString("D2");
|
||||||
uiFlowLayoutPanel1.Panel.Controls.Add(btn);
|
uiFlowLayoutPanel1.AddControl(btn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
private void FMain_Selecting(object sender, TabControlCancelEventArgs e, UIPage page)
|
||||||
{
|
{
|
||||||
page?.Text.ConsoleWriteLine();
|
page?.Text.ConsoleWriteLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user