protected void AddToViewport(HtmlWidgets.HtmlWidgetBase htmlWidget) { // var presentationDomNode = htmlWidget.GetPresentationDomNode(this.groundHtmlDoc); this.groundHtmlDoc.BodyElement.AddChild(presentationDomNode); //this.groundHtmlDoc.RootNode.AddChild(presentationDomNode); //sampleViewport.AddContent(htmlWidget.GetPrimaryUIElement(myHtmlHost)); }
protected void AddToViewport(HtmlWidgets.HtmlWidgetBase htmlWidget) { // WebDom.DomElement presentationDomNode = htmlWidget.GetPresentationDomNode((HtmlElement)_groundHtmlDoc.RootNode); _groundHtmlDoc.BodyElement.AddChild(presentationDomNode); }