I create a scatterline point bound to a series in XAML which works correctly. Then I create a new series and populate the datapoints. when I add the series to the charts series collection the count of the datapoint collection goes to zero.
I found the line of code causing the issue:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
this.DataContext = this;
}
for expediency in the test app I set the data context equal to itself so I could easily reference some lists for binding. Binding to the list worked correctly but it had issues with dynamically built series which did not have any binding.
Could you provide some more information about your scenario or code snippet on your XamChart? It is not cleared how do you define the Series in the chart and populating the datapoints.
Thank you.