2020-05-11 21:11:29 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Sunny.UI.Demo
|
|
|
|
|
{
|
|
|
|
|
public partial class FButton : UITitlePage
|
|
|
|
|
{
|
|
|
|
|
public FButton()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-07-26 19:18:00 +08:00
|
|
|
|
uiToolTip1.SetToolTip(uiButton1, uiButton1.Text);
|
|
|
|
|
uiToolTip1.SetToolTip(uiSymbolButton1, uiSymbolButton1.Text, "SunnyUI");
|
2020-07-21 23:38:29 +08:00
|
|
|
|
uiToolTip1.SetToolTip(uiSymbolButton2, uiSymbolButton2.Text, "SunnyUI",
|
2020-07-26 19:18:00 +08:00
|
|
|
|
uiSymbolButton2.Symbol, 32, UIColor.Red);
|
2020-05-11 21:11:29 +08:00
|
|
|
|
}
|
2020-07-26 14:25:52 +08:00
|
|
|
|
|
2020-07-26 19:18:00 +08:00
|
|
|
|
private void uiButton10_Click(object sender, EventArgs e)
|
2020-07-26 14:25:52 +08:00
|
|
|
|
{
|
2020-07-26 19:18:00 +08:00
|
|
|
|
uiButton10.Selected = !uiButton10.Selected;
|
2020-07-26 14:25:52 +08:00
|
|
|
|
}
|
2020-10-18 21:47:36 +08:00
|
|
|
|
|
|
|
|
|
private void uiSwitch1_ValueChanged(object sender, bool value)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(uiSwitch1.Active);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void uiSwitch1_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine(uiSwitch1.Active);
|
|
|
|
|
}
|
2020-11-09 23:41:41 +08:00
|
|
|
|
|
|
|
|
|
private void uiButton13_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Frame.SelectPage(1004);
|
|
|
|
|
}
|
2020-05-11 21:11:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|