I saw serialization was added on 8.4.
I start from RangeAreaChart that I modify getting 3 chartseries. On Serialized (XamlWriter.Write) it's ok I've a string that's my object (I serialize the ChartSerie root).
But when I Parse xml for creating my object, I got this error :
XamlParseException : Set property 'Syncfusion.Windows.Chart.ChartDataModel.ChartPoints' threw an exception.
InnerException : Object of type 'System.String' cannot be converted to type 'Syncfusion.Windows.Chart.ChartListData'.
Part of generated string, about ChartDataModel :
///Fucntion for save => creating string from xmal object
private void Save_Click(object sender, RoutedEventArgs e)
{
String s = System.Windows.Markup.XamlWriter.Save(Chart1);
SaveValue.Text = s;
}
/// Function for create object with string
private void Load_Click(object sender, RoutedEventArgs e)
{
Chart1 = (Chart)System.Windows.Markup.XamlReader.Parse(SaveValue.Text); //I Got error here
AddDataToSeries(); //populate data
}
I don't populate chart before save/restore, so I don't understand why this error.
I read you set a minimal support for serialize, can we got more informations about what we can/cannot serialize ?
Thanks :)
Arnard
Window1.xaml_6f14f6c1.zip