protected override void OnInitializeContent(Chart element, GraphicStyleInfo style) { element.Background = style.Background; element.BorderBrush = style.BorderBrush; element.BorderThickness = style.BorderThickness; base.OnInitializeContent(element, style); }
protected override Chart CreateUIElement(GraphicStyleInfo cellInfo) { if (cellInfo.CellValue != null && cellInfo.CellValue is IChartShape) { IChartShape chartShape = cellInfo.CellValue as IChartShape; return(chartShape.CreateChart()); } else if (cellInfo.CellValue != null && cellInfo.CellValue is IChart) { IChart chartShape = cellInfo.CellValue as IChart; return(chartShape.CreateChart()); } return(base.CreateUIElement(cellInfo)); }