Introduction WebPanelBar
WebPanelBar
is powerful WinXP like menu bar. It's like Windows XP left group bar, and supports four level menu. It is just like Microsoft MSDN website left menubar. Submenu can scroll if it's too long.
WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[0].Caption = "First group";
WebPanelBar1.Groups[0].WebPanelBarGroupType =
YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.FlyOut;
WebPanelBar1.Groups[0].Items.Add();
WebPanelBar1.Groups[0].Items[0].Caption = "First item";
WebPanelBar1.Groups[0].Items[0].URL = "#";
WebPanelBar1.Groups[0].Items[0].WebPanelBarItemType =
YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutLink;
WebPanelBar1.Groups[0].Items[0].AddGroup();
WebPanelBar1.Groups[0].Items[0].Group.Caption = "SubGroup";
int i = 0;
WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[0].Caption = "SubMenu Item Head";
WebPanelBar1.Groups[0].Items[0].Group.Items[0].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[0].WebPanelBarItemType =
YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutHeading;
WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[1].Caption =
"Using Stored Procedures in Visual Basic .NET";
WebPanelBar1.Groups[0].Items[0].Group.Items[1].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[1].WebPanelBarItemType =
YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSubLink;
WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[2].Caption = "Separator";
WebPanelBar1.Groups[0].Items[0].Group.Items[2].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[2].WebPanelBarItemType =
YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSeparator;
for (i=3; i<30; i++)
{
WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[i].Caption = "Sub Menu Item";
WebPanelBar1.Groups[0].Items[0].Group.Items[i].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[i].WebPanelBarItemType =
YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSubLink;
}
WebPanelBar1.Groups[0].Items.Add();
WebPanelBar1.Groups[0].Items[1].Caption = "Second item";
WebPanelBar1.Groups[0].Items[1].URL = "#";
WebPanelBar1.Groups[0].Items[1].WebPanelBarItemType =
YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutNormalLink;
WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[1].Caption = "Second group";
WebPanelBar1.Groups[1].WebPanelBarGroupType =
YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.Normal;
WebPanelBar1.Groups[1].Items.Add();
WebPanelBar1.Groups[1].Items[0].Caption = "First item";
WebPanelBar1.Groups[1].Items[0].URL = "#";
WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[2].Caption = "Third group";
WebPanelBar1.Groups[2].Items.Add();
WebPanelBar1.Groups[2].Items[0].Caption = "First item";
WebPanelBar1.Groups[2].Items[0].URL = "#";