ASP.NET的WebPanelBar

分享于 

4分钟阅读

Web开发

  繁體

Sample screenshot

Sample screenshot

简介 WebPanelBar

WebPanelBar 功能强大,像菜单栏。 它就像 Windows XP左栏,支持四级菜单。 它就像微软的MSDN网站左栏栏。 子菜单如果太长则可以滚动。

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;

WEB  asp  asp-net  WEBP  
相关文章