public static void AddContent(this SampleViewport viewport, UIElement ui) { viewport.ViewportControl.AddContent( ui.GetPrimaryRenderElement(viewport.ViewportControl.RootGfx), ui); }
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)); }
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)); } } }