Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

WebPanelBar for ASP.NET

0.00/5 (No votes)
3 Apr 2003 1  
WebPanelBar for ASP.NET

Sample screenshot

Sample screenshot

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[1].Items[0].WebPanelBarItemType = 

//  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.Link;


WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[2].Caption = "Third group";
//WebPanelBar1.Groups[1].WebPanelBarGroupType = 

//  YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.Normal;

WebPanelBar1.Groups[2].Items.Add();
WebPanelBar1.Groups[2].Items[0].Caption = "First item";
WebPanelBar1.Groups[2].Items[0].URL = "#";
//WebPanelBar1.Groups[1].Items[0].WebPanelBarItemType = 

//   YHControlFamily.WebPanelBar.WebPanelBarItemTypes.Link;

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here