public ActionResult Index() { var designHomePage = new ViewPage(); designHomePage.AddControls( new HtmlGenericControl("html").AddControls( new HtmlGenericControl("body").AddControls( new HtmlGenericControl("h1"){InnerText = "MVC Design Mode"}, new HtmlGenericControl("ul").AddControls( GetListItemsForActions() ) ) ) ); return new ViewResult { View = new DesignTimeView { ViewPage = designHomePage } }; }