The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi, I have a canvas with several 'syncfusion:GridControl's on it. During execution time I modify several appearance properties of my 'GridControl's like background color, font family, font size,font color, covered cells ...
At any time I need to be able to get the XAML code of my canvas in order to save it in a file.
XamlWriter.Save() generates an exception when called with a syncfusion:GridControl as its argument :
L'accesseur de propriété 'VScroll' sur l'objet 'Syncfusion.Windows.Controls.Grid.GridControl' a levé l'exception suivante :'La référence d'objet n'est pas définie à une instance d'un objet.'
What is the reason for this ? How can I sget the XAML code for my GridControl objet at execution time ?
MSMohamed Suhaib Fahad A. Syncfusion Team August 19, 2009 11:47 AM UTC
Hi Nazim,
Thanks for the details. We are currently not supporting XamlWriter.Save() serialization with the Grid. In future versions, we would be adding support for XML serialization, and along with that include support for XamlWriter too.
Please create a dtrac incident to receive any other updates on this. Let me know if you need any other details.
Thanks, Fahad Grid.WPF Team Syncfusion Inc.,
NYNazim YENIERAugust 19, 2009 12:53 PM UTC
Thank you for your response Fahad. I'm a bit deceived that XAMLWriter doesn't work for Essential Grid.
Is there any other simple way to get the XAML code for Essential Grid or do I have to write my own "C# Object to XAML converter" for this purpose ?
Nazim
MSMohamed Suhaib Fahad A. Syncfusion Team August 20, 2009 06:57 AM UTC
Hi Nazim,
Yes, for now, you would have to write your own object serializer to handle it out.