AspMenu.UseSimpleRendering Property
Controls whether to use simple unordered list-based rendering or the default Microsoft ASP.NET table-based rendering.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
Visual Basic (Declaration)
Public Property UseSimpleRendering As Boolean Get Set
Visual Basic (Usage)
Dim instance As AspMenu Dim value As Boolean value = instance.UseSimpleRendering instance.UseSimpleRendering = value
C#
public bool UseSimpleRendering { get; set; }
Property Value
Type: System.Booleantrue if the menu uses simple rendering; otherwise, false. The default is false.
Remarks
Set this property to true to cause the menu to render as an unordered list of anchor elements that is more easily styled using cascading style sheets (CSS) and more accessible.
See Also
Reference
Community Content
tswaters
Breaks "DisappearAfter" attribute
Using simple rendering will break the ability to use various properties still available to SharePoint:AspMenu. Specifically:
- "DisappearAfter" attribute is not recognized -- menu will always disapear after the default time.
- "StaticDisplayLevels" and "MaximumDynamicDisplayLevels"are not recognized -- all menu items are output all the time.
- Styling attributes (i.e. StaticHoverStyle-BackColor, BackColor, etc.)
- Templating elements (i.e. StaticItemTemplate, DynamicItemTemplate, etc. )
