public HtmlRenderElement(string htmlElementTagName, string htmlElementId, IRenderQueue renderQueue) { this.HtmlElement = Document.CreateElement(htmlElementTagName); this.renderQueue = renderQueue; if (!htmlElementId.IsNullOrEmpty()) { this.HtmlElement.Id = htmlElementId; } Style = new HtmlStyleDictionary(HtmlElement); Style.Invalidated += (sender, e) => InvalidateRender(); this.isRenderValid = true; }
public HtmlRenderElement(string htmlElementTagName, string htmlElementId, IRenderQueue renderQueue) { this.HtmlElement = Document.CreateElement(htmlElementTagName); this.renderQueue = renderQueue; if (!htmlElementId.IsNullOrEmpty()) { this.HtmlElement.Id = htmlElementId; } Style = new HtmlStyleDictionary(HtmlElement); Style.Invalidated += (sender, e) => InvalidateRender(); this.isRenderValid = true; }