This is a migrated thread and some comments may be shown as answers.

i find bug in serialization engine!

1 Answer 58 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Ruslan
Top achievements
Rank 1
Ruslan asked on 22 Jun 2012, 11:43 PM
when i serialize raddiagram with shapes, i got this string:
<?xml version="1.0" encoding="utf-8"?><RadDiagram Type=""><Metadata Type="Telerik.Windows.Diagrams.Core.DiagramMetadata" Id="04ca8e75-89fd-461d-af41-f993856d5cc1" /><Groups /><Shapes QNs="Telerik.Windows.Controls.Diagrams, Version=2012.2.607.1050, Culture=neutral, PublicKeyToken=5803cfa389c90ce7;"><RadDiagramShape Type="Telerik.Windows.Controls.RadDiagramShape" Id="5fb33f4f-46bb-4547-a2a5-f9c3e4ac5355" ZIndex="1" Position="1878;999" Content="Produce" StrokeThickness="1" StrokeDashArray="1 0 " Thickness="0;0;0;0" FontSize="12" FontWeight="400" FontFamily="Segoe UI" Size="105;30" RotationAngle="0" Connectors="Auto:0.5;0.5,Left:0;0.5,Top:0.5;0,Right:1;0.5,Bottom:0.5;1," Geometry="M0.5,0.5L111.5,0.5L111.5,74.5L0.5,74.5z" QN="0"><Stroke><SolidColorBrush Color="#FF487A00" /></Stroke><Background><SolidColorBrush Color="#FF8BC03F" /></Background><Foreground><SolidColorBrush Color="#FFFFFFFF" /></Foreground><BorderBrush><SolidColorBrush Color="#FF487A00" /></BorderBrush></RadDiagramShape></Shapes><Connections /></RadDiagram>

when i deserialize this, borderbrush don't serialize!
you may see this in demo http://demos.telerik.com/silverlight/#Diagrams/FirstLook 
copy 1 shape and insert into dashboard. borderbrush will be another color!
i think, bug in <Background><SolidColorBrush Color="#FF8BC03F" /></Background> - serializationinfo class don't deserialize if xelement has more than 1 element inner him. at this we have 3 elements:
<Background><SolidColorBrush Color="#FF8BC03F" /></Background>
<Foreground><SolidColorBrush Color="#FFFFFFFF" /></Foreground>
<BorderBrush><SolidColorBrush Color="#FF487A00" /></BorderBrush>
 

please, help =)
p.s. sorry for my bad english.

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 25 Jun 2012, 07:44 AM
Hi,

 Thank you for reporting this issue. We are going to fix this as soon as possible. I have updated your Telerik points accordingly.

Kind regards,
Alex Fidanov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Diagram
Asked by
Ruslan
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or