We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Save and load diagram (xaml) problems

Thread ID:





98433 Feb 28,2011 10:53 AM UTC Mar 9,2011 11:18 AM UTC Silverlight 3
Tags: Diagram
Asked On February 28, 2011 10:53 AM UTC

I've created a diagram control ( as follows :

I'm trying to draw and save and load simple diagram by calling Save() and Load() methods, but it doesn't work. It says :
Failed to create a 'System.Double' from the text 'infinity'. [Line: 1 Position: 353].
When i'm looking inside generated xaml i see following :
Width="NaN" Height="NaN" MinWidth="0" MaxWidth="Infinity" MinHeight="0" MaxHeight="Infinity"
and so on (44 times, for each element i guess). Am i missing something or diagram has to have explicitly set values for (max) height and width? Thanks in advance.

Maria Amal Raj T [Syncfusion]
Replied On March 1, 2011 10:50 AM UTC


We are not able to reproduce the reported issue. Please refer to the sample that we tried to reproduce the issue from the attached file.

When we save the diagram we can see that the xaml file contains Nan and Infinity values, but the xaml file is loaded properly in diagram. Could you please modify this sample in such a way that you can reproduce the issue.

Please let us know if you have any further queries.

Maria Amal Raj T.


Replied On March 3, 2011 09:34 AM UTC

The problem is somewhere in locale and regional standarts i guess. I have Ukrainian locale selected, and even your example throws an error. Started looking into source code and found many string parameter evaluations (i.e. string.Contains("http://schemas.syncfusion.com/wpf"), xattr.Name.LocalName == "Panel.ZIndex" etc.), that may be the cause.


Maria Amal Raj T [Syncfusion]
Replied On March 9, 2011 11:18 AM UTC


We have confirmed the problem which you have mentioned in your last update to be a defect and it will be fixed in our upcoming release. If you interested in getting a patch for this issue, then you may create a Direct-Trac incident under the following link.


Please let us know if you have any further queries.

Maria Amal Raj T,
Diagram WPF & Silverlight Team[Syncfusion].


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon