LayoutFarm.HtmlWidgets.TabPage.GetPageBody C# (CSharp) Method

GetPageBody() public method

public GetPageBody ( DomElement hostNode ) : DomElement
hostNode LayoutFarm.WebDom.DomElement
return LayoutFarm.WebDom.DomElement
        public DomElement GetPageBody(DomElement hostNode)
        {
            if (contentNode != null) return contentNode;
            var ownerdoc = hostNode.OwnerDocument;
            contentNode = ownerdoc.CreateElement("div");
            if (this.contentUI != null)
            {
                //add content ui to the body of page
                //creat html wrapper for this ...        

                throw new NotImplementedException();
                //reimpl here again
                //HtmlDocument htmldoc = (HtmlDocument)ownerdoc;
                //var wrapperElement = htmldoc.CreateWrapperElement("x",(RootGraphic rootgfx, out RenderElement renderE, out object controller) =>
                //{   
                //    renderE = contentUI.GetPrimaryRenderElement(rootgfx);
                //    controller = contentUI;

                //});
                //contentNode.AddChild(wrapperElement);

            }
            return contentNode;
        }
        public UIElement ContentUI

Usage Example

Ejemplo n.º 1
0
        public void AddItem(TabPage tabPage)
        {
            //1. store in collection

            tabPageCollection.Add(tabPage);
            tabPage.OwnerContainer = this;
            if (pnode != null)
            {
                if (currentPage == null)
                {
                    currentPage = tabPage;
                    //add tab button into list
                    this.tabTitleList.AddChild(tabPage.GetTitleNode(pnode));
                    //add page body
                    contentNode.AddChild(tabPage.GetPageBody(pnode));
                }
                else
                {
                    //add tab button into list
                    this.tabTitleList.AddChild(tabPage.GetTitleNode(pnode));
                }
            }
        }
All Usage Examples Of LayoutFarm.HtmlWidgets.TabPage::GetPageBody