Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }