System.Web.UI.WebControls.Menu.StaticItemTemplate Property

Gets or sets the template that contains the custom content to render for a static menu.

Syntax

[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.MenuItemTemplateContainer), System.ComponentModel.BindingDirection.OneWay)]
[System.ComponentModel.DefaultValue(null)]
public System.Web.UI.ITemplate StaticItemTemplate { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Instead of using the built-in rendering for a static menu, you can define your own user interface (UI) for a static menu item by using the Menu.StaticItemTemplate property. To specify a custom template for a static menu item, first place <StaticTemplate> tags between the opening and closing tags of the System.Web.UI.WebControls.Menu control. You can then list the contents of the template between the opening and closing <StaticTemplate> tags. You can further control the style of a static menu by using the Menu.StaticMenuStyle property.

Requirements

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