I am trying to create a pointseries with the points having a custom color in codebehind. Is there a simple way to do this?
As far as I understand, the only way to set the color of a pointseries is to use a custom pointtemplate, and pointtemplates can only easily be created in XAML, in code behind I would have to create the xaml as a string and then convert it into a datatemplate or something. But that seems like a lot of complexity for something as simple as setting the color of a chart.
I cannot define everything in XAML because series are created on the go and the colors can vary depending on settings.