private static IDisposable RenderUxDispoableWebControl(this HtmlHelper helper, UxControl control) { return new UxDisposableControl( () => helper.RenderUxControlStart(control), () => helper.RenderUxControlEnd(control) ); }
private static void RenderUxControlStart(this HtmlHelper htmlHelper, UxControl control) { htmlHelper.RenderPartial("ControlTemplates/" + control.ViewTemplate + "Start", control); }
private static MvcHtmlString RenderUxControl(this HtmlHelper htmlHelper, UxControl control) { var partial = htmlHelper.Partial("ControlTemplates/" + control.ViewTemplate, control).ToString(); return MvcHtmlString.Create(partial); }