.NET Framework Class Library
Menu..::.StaticItemTemplate Property

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

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)
Syntax

Visual Basic (Declaration)
<TemplateContainerAttribute(GetType(MenuItemTemplateContainer))> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<BrowsableAttribute(False)> _
Public Property StaticItemTemplate As ITemplate
Visual Basic (Usage)
Dim instance As Menu
Dim value As ITemplate

value = instance.StaticItemTemplate

instance.StaticItemTemplate = value
C#
[TemplateContainerAttribute(typeof(MenuItemTemplateContainer))]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
public ITemplate StaticItemTemplate { get; set; }
Visual C++
[TemplateContainerAttribute(typeof(MenuItemTemplateContainer))]
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
[BrowsableAttribute(false)]
public:
property ITemplate^ StaticItemTemplate {
    ITemplate^ get ();
    void set (ITemplate^ value);
}
JScript
public function get StaticItemTemplate () : ITemplate
public function set StaticItemTemplate (value : ITemplate)
ASP.NET
<asp:Menu>
    <StaticItemTemplate>ITemplate</StaticItemTemplate>
</asp:Menu>

Property Value

Type: System.Web.UI..::.ITemplate
A ITemplate that contains the custom content for a static menu. The default value is null, which indicates that this property is not set.
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 StaticItemTemplate property. To specify a custom template for a static menu item, first place <StaticTemplate> tags between the opening and closing tags of the 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 StaticMenuStyle property.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0
See Also

Reference

Tags :


Page view tracker