This topic has not yet been rated - Rate this topic

AspMenu.RenderBlankImage Property

SharePoint 2010

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
public bool RenderBlankImage { get; set; }

Property Value

Type: System.Boolean
Returns Boolean.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
More details on this property
So, to respond to the previous comment about what this property is intended for:

I believe it was added in SharePoint 2010 in support of the new Simple Rendering mode of the SharePoint.AspMenu control, which renders the control with nested unordered lists that are CSS friendly (just like the ASP.NET 4 version of the Menu control).

As the name of the property states, it renders a blank image (html img) inside the static list items - which could potentially be replaced with your own images by using a little jquery selector.

This could be a very simple way to style your menu with individual images for each static item. Another option would be to turn that property off and leverage the additional background span that is rendered in the LI, and apply some CSS sprites and background image.
What exactly does this property accomplish?
Ok...so it "renders a blank image"??? $0$0 $0 $0Can someone elaborate on this?  There a couple of properties on this control, including this one, which have no description or remarks.  It would be nice of the product team to ensure that controls get their XML documentation added to each public property, and that should be enforced prior to building and shipping the product.$0 $0$0 $0