Class MenuList
Renders a menu list of top level items, useful for navigations that contain a top level menu displaying subtree's as clicked.
Inheritance
Implements
Namespace: EPiServer.Web.WebControls
Assembly: EPiServer.Web.WebControls.dll
Version: 8.11.0Syntax
public class MenuList : PageTreeData, INamingContainer
Remarks
Use this control as a datasource to get child pages to currently selected subtree
Examples
Example usage of MenuList using a PageTree to display subtree's through data binding.
Constructors
MenuList()
Initializes a new instance of the MenuList class.
Declaration
public MenuList()
Properties
ExpandNodeIfStartPage
Set this property to automatically select a page when on start page
Declaration
public PageReference ExpandNodeIfStartPage { get; set; }
Property Value
Type | Description |
---|---|
PageReference |
FooterTemplate
The default template for footer
Declaration
public ITemplate FooterTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
Remarks
Contained page will be the root page for the tree
HeaderTemplate
The default template for heading
Declaration
public ITemplate HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
Remarks
Contained page will be the root page for the tree
ItemTemplate
Template used for displaying items in the navigation bar
Declaration
public ITemplate ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
SelectedTemplate
Template used for displaying selected items in the navigation bar
Declaration
public ITemplate SelectedTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
SeparatorTemplate
The template used between pages
Declaration
public ITemplate SeparatorTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Web.UI.ITemplate |
Remarks
No contained data
ShowRootPage
Declaration
public override bool ShowRootPage { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
CreateChildControls()
Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
Declaration
protected override void CreateChildControls()
Render(HtmlTextWriter)
Render this control to the output parameter specified.
Declaration
protected override void Render(HtmlTextWriter output)
Parameters
Type | Name | Description |
---|---|---|
System.Web.UI.HtmlTextWriter | output | The HTML writer to write out to |