src/MVCContrib/UI/MenuBuilder/MenuItem.cs
/// <summary>
/// Called internally by RenderHtml(RequestContext, TextWriter) to remove empty items from lists and generate urls.
/// Can also be called externally to prepare the menu for serialization into Json/Xml
/// </summary>
/// <param name="controllerContext">The current RequestContext</param>
/// <returns>if this item should be rendered</returns>
Called internally by RenderHtml(RequestContext, TextWriter) to remove empty items from lists and generate urls.
Can also be called externally to prepare the menu for serialization into Json/Xml
Called internally by RenderHtml ( RequestContext TextWriter ) to remove empty items from lists and generate urls . Can also be called externally to prepare the menu for serialization into Json / Xml
public virtual void Prepare(ControllerContext controllerContext)
		{
			Prepared = true;
			if(controllerContext.RequestContext.HttpContext.Request.Path == ActionUrl)
				itemSelected = true;
		}
public virtual void Prepare ( ControllerContext controllerContext ) { Prepared = true ; if ( controllerContext . RequestContext . HttpContext . Request . Path == ActionUrl ) itemSelected = true ; }
Called internally by RenderHtml(RequestContext, TextWriter) to remove empty items from lists and generate urls.
Called internally by RenderHtml ( RequestContext TextWriter ) to remove empty items from lists and generate urls .
if this item should be rendered
if this item should be rendered
controllerContext
ControllerContext
The current RequestContext
The current RequestContext