internal virtual void ReInit(ScaleType scaleType, Tuple<double, string>[] points, string dataPointsFormat) { if (Container.ActualHeight == 0.0 || Container.ActualWidth == 0.0 || points == null) return; if (scaleType != ScaleType || points != DataPoints || dataPointsFormat != DataPointsFormat) { ScaleType = scaleType; DataPoints = points; DataPointsFormat = dataPointsFormat; MyTBs.Clear(); ClearChartObjectsWithMyTag(); for (int i = 0; i <= DataPoints.GetUpperBound(0); i++) { TextBlock tb = new TextBlock() { Tag = Tag }; MyTBs.Add(tb); Container.Children.Add(tb); } } Draw(); }