When using the Chart control, invoking the Add method to add new data point, such as Series.Points.AddXY(), will trigger a redraw of the chart control. Now, I am trying to build a chart control by myself. I am wondering; how does it work. Is it using events and delegates or some other way to trigger the redraw?
Any hint would be appreciated.
You would do this by creating your own class that inherits
Collection<T>and overridesInsertItem()and other methods to redraw the chart when the collection is changed.