Menu.StaticItemTemplate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the template that contains the custom content to render for a static menu.
public:
property System::Web::UI::ITemplate ^ StaticItemTemplate { System::Web::UI::ITemplate ^ get(); void set(System::Web::UI::ITemplate ^ value); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.MenuItemTemplateContainer))]
public System.Web.UI.ITemplate StaticItemTemplate { get; set; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
[<System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.MenuItemTemplateContainer))>]
member this.StaticItemTemplate : System.Web.UI.ITemplate with get, set
Public Property StaticItemTemplate As ITemplate
Property Value
A ITemplate that contains the custom content for a static menu. The default value is null, which indicates that this property is not set.
- Attributes
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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기