public Image SetImageBox(ImageBox box) { ImageBox = box ?? ImageBox.None; return this; }
public static MvcHtmlString UxImage(this HtmlHelper helper, string src, string alt = null, ImageBox box = null, string width = null, string height = null, string clientId = null) { var image = new Image(src, alt, box, width, height, clientId); return helper.RenderUxControl(image); }
public Image(string src, string alt = null, ImageBox box = null, string width = null, string height = null, string clientId = null) : base("_Image",clientId) { SetSrc(src).SetAlt(alt).SetDimensions(width, height).SetImageBox(box); }