GetPrimaryRenderElement() public abstract method

public abstract GetPrimaryRenderElement ( RootGraphic rootgfx ) : RenderElement
rootgfx RootGraphic
return RenderElement
 public static void AddContent(this SampleViewport viewport, UIElement ui)
 {
     viewport.ViewportControl.AddContent(
         ui.GetPrimaryRenderElement(viewport.ViewportControl.RootGfx),
         ui);
 }
Esempio n. 2
0
 public void SetContent(int r, int c, UIElement ui)
 {
     gridLayer.GetCell(r, c).ContentElement = ui.GetPrimaryRenderElement(this.Root);
 }
 public static void AddChild(this RenderElement renderBox, UIElement ui)
 {
     renderBox.AddChild(ui.GetPrimaryRenderElement(renderBox.Root));
 }
Esempio n. 4
0
 public void AddUI(UIElement ui, int rowIndex, int colIndex)
 {
     if (rowIndex < gridTable.RowCount && colIndex < gridTable.ColumnCount)
     {
         gridTable.GetCell(rowIndex, colIndex).ContentElement = ui;
         if (this.gridBoxRenderE != null)
         {
             gridBoxRenderE.SetContent(rowIndex, colIndex, ui.GetPrimaryRenderElement(gridBoxRenderE.Root));
         }
     }
 }