Click here to Skip to main content
15,920,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Infragistics control used for creating dynamic charts.
I want to generate a XAML equivalent code in code behind.
Chart control contains a Series class object which is rendered on chart to generate a chart having X Axis and Y axis and a lets say Line series. Hence end product is a line chart.
Currently I am using XAMLWriter.Save(objSeries). This give an error for serialization. e.g. While converting a Infragistics Series error is:
Quote:
Error Cannot serialize a non-public type 'Infragistics.Controls.Charts.ScatterLineSeriesView'.

This is a limitation with XAMLWriter.Save().

I want to know other ways of generating a XAML equivalent code for a WPF object.
Posted
Updated 23-Nov-11 20:19pm
v2

1 solution

I finally resolved this myself by writing a custom serializer.
 
Share this answer
 
Comments
ksvimalraj 8-Oct-12 9:18am    
Is it possible for you to post your custom serializer code? It will be useful for others also

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900