2020-05-11 21:11:29 +08:00
|
|
|
|
namespace Sunny.UI.Demo
|
|
|
|
|
{
|
|
|
|
|
public partial class FNavigation : UITitlePage
|
|
|
|
|
{
|
|
|
|
|
public FNavigation()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2020-06-02 22:15:54 +08:00
|
|
|
|
uiNavBar1.SetNodeItem(uiNavBar1.Nodes[0].Nodes[0], new NavMenuItem(100));
|
|
|
|
|
uiNavBar1.SetNodeItem(uiNavBar1.Nodes[0].Nodes[1], new NavMenuItem(101));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void uiNavBar1_MenuItemClick(string itemText, int menuIndex, int pageIndex)
|
|
|
|
|
{
|
|
|
|
|
UIMessageTip.ShowOk(itemText + ", " + menuIndex + ", " + pageIndex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void uiNavBar1_NodeMouseClick(System.Windows.Forms.TreeNode node, int menuIndex, int pageIndex)
|
|
|
|
|
{
|
|
|
|
|
//UIMessageTip.ShowOk(node.Text + ", " + menuIndex + ", " + pageIndex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void uiNavMenu1_MenuItemClick(System.Windows.Forms.TreeNode node, NavMenuItem item, int pageIndex)
|
|
|
|
|
{
|
|
|
|
|
UIMessageTip.ShowOk(node.Text + ", " + pageIndex);
|
2020-05-11 21:11:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|