i find bug in serialization engine!

2 posts, 0 answers
  1. Ruslan
    Ruslan avatar
    15 posts
    Member since:
    Jul 2011

    Posted 22 Jun 2012 Link to this post

    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.

  2. Alex Fidanov
    Alex Fidanov avatar
    637 posts

    Posted 25 Jun 2012 Link to this post


     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 >>

Back to Top