In my app, I have 4 data templates that represent the state of points on the chart. This all works fine when first drawn, and my TemplateSelector assigns the proper template to the point based on the state of the underlying object.
My problem is that when the underlying object changes, I need it to trigger a refresh of that point, to get the chart to re-evaluate the TemplateSelector to apply the correct DataTemplate to reflect the new state. Is there any way to set up a binding, or absent that a way to poke it from the code-behind in a way that's not terribly horrible and get it to re-plot a single point? The only way I've found is to re-plot the whole series, which is a big performance issue with large datasets (10-50k items).
Thanks,
Louis
My problem is that when the underlying object changes, I need it to trigger a refresh of that point, to get the chart to re-evaluate the TemplateSelector to apply the correct DataTemplate to reflect the new state. Is there any way to set up a binding, or absent that a way to poke it from the code-behind in a way that's not terribly horrible and get it to re-plot a single point? The only way I've found is to re-plot the whole series, which is a big performance issue with large datasets (10-50k items).
Thanks,
Louis