* 页面框架增加页面内跳转方法

This commit is contained in:
Sunny 2020-11-09 23:41:41 +08:00
parent 192055963f
commit d732079aed
6 changed files with 11 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -433,6 +433,7 @@
this.uiButton13.StyleCustomMode = true;
this.uiButton13.TabIndex = 17;
this.uiButton13.Text = "Red";
this.uiButton13.Click += new System.EventHandler(this.uiButton13_Click);
//
// uiButton14
//

View File

@ -27,5 +27,10 @@ namespace Sunny.UI.Demo
{
Console.WriteLine(uiSwitch1.Active);
}
private void uiButton13_Click(object sender, EventArgs e)
{
Frame.SelectPage(1004);
}
}
}

View File

@ -44,6 +44,7 @@ namespace Sunny.UI
public UIPage AddPage(UIPage page, int index)
{
page.Frame = this;
page.PageIndex = index;
MainContainer.AddPage(page);
return page;
@ -51,6 +52,7 @@ namespace Sunny.UI
public UIPage AddPage(UIPage page, Guid guid)
{
page.Frame = this;
page.PageGuid = guid;
MainContainer.AddPage(page);
return page;
@ -58,6 +60,7 @@ namespace Sunny.UI
public UIPage AddPage(UIPage page)
{
page.Frame = this;
MainContainer.AddPage(page);
return page;
}

View File

@ -39,6 +39,8 @@ namespace Sunny.UI
protected UIStyle _style = UIStyle.Blue;
public UIMainFrame Frame;
public UIPage()
{
InitializeComponent();