Home Forums WPF controls Other WPF controls XmlLayoutSerializer.Serilize() Avalon Dock v4.0.30319

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • abinmatthew
    Participant
    Post count: 3
    #44800 |

    I have updated the Avalon Dock to the version v4.0.30319 and facing the issue like serializing the hidden Layout panels will throw exception when Deserialize.

    XML output while serializing for hidden panels are not done properly for example see below,

    
    <Hidden AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Properties" ContentId="5" FloatingLeft="400" FloatingTop="354.4" FloatingWidth="252.8" FloatingHeight="136" CanClose="False" LastActivationTimeStamp="05/19/2017 10:18:40" PreviousContainerId="35b550db-0597-439e-846c-85bd93653edb" PreviousContainerIndex="0" AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Reindex" ContentId="6" FloatingLeft="284.8" FloatingTop="513.6" FloatingWidth="331.2" FloatingHeight="731.2" CanClose="False" LastActivationTimeStamp="05/19/2017 10:18:40" PreviousContainerId="4e16e769-2fdc-4e94-8ce6-9c28d49eb413" PreviousContainerIndex="1" AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Misc Result" ContentId="7" FloatingLeft="284.8" FloatingTop="513.6" FloatingWidth="331.2" FloatingHeight="731.2" CanClose="False" LastActivationTimeStamp="05/19/2017 10:18:40" PreviousContainerId="4e16e769-2fdc-4e94-8ce6-9c28d49eb413" PreviousContainerIndex="0" AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Search" ContentId="3" FloatingLeft="512" FloatingTop="400" FloatingWidth="252.8" FloatingHeight="731.2" CanClose="False" LastActivationTimeStamp="05/19/2017 10:18:40" PreviousContainerId="ecf9dc94-d50f-48e6-8470-3225e32ff809" PreviousContainerIndex="0" />
    

    Its a single tag and i have multiple hidden panels.

    The previous version does like below,

    <Hidden>
        <LayoutAnchorable AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Misc Result" IsSelected="True" ContentId="7" FloatingLeft="284.8" FloatingTop="513.6" FloatingWidth="331.2" FloatingHeight="731.2" CanClose="False" LastActivationTimeStamp="05/02/2017 07:50:19" PreviousContainerId="4e16e769-2fdc-4e94-8ce6-9c28d49eb413" PreviousContainerIndex="0" />
        <LayoutAnchorable AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Reindex" IsSelected="True" ContentId="6" FloatingLeft="284.8" FloatingTop="513.6" FloatingWidth="331.2" FloatingHeight="731.2" CanClose="False" LastActivationTimeStamp="05/02/2017 07:50:19" PreviousContainerId="4e16e769-2fdc-4e94-8ce6-9c28d49eb413" PreviousContainerIndex="0" />
        <LayoutAnchorable AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Properties" IsSelected="True" ContentId="5" FloatingLeft="400" FloatingTop="354.4" FloatingWidth="252.8" FloatingHeight="136" CanClose="False" LastActivationTimeStamp="05/02/2017 07:50:19" PreviousContainerId="35b550db-0597-439e-846c-85bd93653edb" PreviousContainerIndex="0" />
        <LayoutAnchorable AutoHideMinWidth="100" AutoHideMinHeight="100" Title="Search" IsSelected="True" ContentId="3" FloatingLeft="512" FloatingTop="400" FloatingWidth="252.8" FloatingHeight="731.2" CanClose="False" LastActivationTimeStamp="05/02/2017 07:50:19" PreviousContainerId="ecf9dc94-d50f-48e6-8470-3225e32ff809" PreviousContainerIndex="0" />
      </Hidden>

    please have a look.

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    Could you send me a sample project which reproduces the issue so that I could have a closer look. You may send it to: support@xceed.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.