private void CreateGrid() { var grid = GdiMapper.ToGdiGrid(ChartGridModel); grid.Border = new GdiSharp.Models.Border(1); grid.CellSize = CellSize; grid.Size = this.Size; this.AddChild(grid); }
private void CreateRightGrid() { if (RightPanel != null) { var rightGrid = GdiMapper.ToGdiGrid(ChartGridModel); rightGrid.CellSize = CellSize; rightGrid.Size = RightPanel.Size; RightPanel.AddChild(rightGrid); } }
private void CreateLeftGrid() { if (LeftPanel != null) { var leftGrid = GdiMapper.ToGdiGrid(ChartGridModel); leftGrid.CellSize = CellSize; leftGrid.Size = LeftPanel.Size; leftGrid.IsDrawnFromRightToLeft = true; LeftPanel.AddChild(leftGrid); } }
protected override void BuildComponents(GdiContainer mainContainer, GdiRectangle chartContainer) { base.BuildComponents(mainContainer, chartContainer); var pie = new GdiPie { Diameter = chartContainer.Size.Height, Entries = Entries, IsDonut = IsDonut, HorizontalAlignment = GdiMapper.ToGdiHorizontalAlign(this.PieAlign), TextColor = TextColor, LabelFormat = LabelFormat, Font = Font }; chartContainer.AddChild(pie); }