SiteMapPath::PathSeparatorTemplate Property
Gets or sets a control template to use for the path delimiter of a site navigation path.
Assembly: System.Web (in System.Web.dll)
public: [BrowsableAttribute(false)] [PersistenceModeAttribute(PersistenceMode::InnerProperty)] [TemplateContainerAttribute((SiteMapNodeItem^::typeid))] property ITemplate^ PathSeparatorTemplate { virtual ITemplate^ get(); virtual void set(ITemplate^ value); }
Property Value
Type: System.Web.UI::ITemplate^An ITemplate object that implements the InstantiateIn method, to render custom content for the path delimiter of a navigation path.
Set the PathSeparatorTemplate to an ITemplate object to use an Image or some other control, such as a Label, as the path delimiter between navigation nodes instead of the PathSeparator string.
If the PathSeparatorTemplate property is set, the template overrides both the PathSeparator text displayed and any PathSeparatorStyle applied to it.
You can declaratively set the PathSeparatorTemplate property to any Web server control, and the ASP.NET infrastructure performs the necessary steps to wrap the Web server control as an ITemplate. However, Web server controls do not implement the ITemplate interface; therefore, when you work with the ITemplate properties programmatically, you must write an ITemplate wrapper for any template code. Then, the PathSeparatorTemplate property is set to an instance of the ITemplate wrapper.
Available since 2.0