System.Web.UI.WebControls.MenuItemTemplateContainer Class

Represents a container that holds the contents of a templated menu item in a System.Web.UI.WebControls.Menu control.

See Also: MenuItemTemplateContainer Members


public sealed class MenuItemTemplateContainer : System.Web.UI.Control, System.Web.UI.IDataItemContainer


The System.Web.UI.WebControls.MenuItemTemplateContainer class is used by the System.Web.UI.WebControls.Menu control as a container for the contents of the menu items that are rendered using a custom template.


This class is used by control developers primarily when extending the System.Web.UI.WebControls.Menu class to create a container for a templated menu item.

You can define a custom template for the dynamic and static menu items of a System.Web.UI.WebControls.Menu control by using the Menu.DynamicItemTemplate and Menu.StaticItemTemplate properties, respectively.

For a list of initial property values for an instance of the System.Web.UI.WebControls.MenuItemTemplateContainer class, see the System.Web.UI.WebControls.MenuItemTemplateContainer constructor.


Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0