This project is read-only.

[v1.3] Bug restoring layout?

Jun 25, 2010 at 9:05 PM
Edited Jun 25, 2010 at 9:08 PM

Hello

I was using v1.2 till today. Now I installed v1.3 (latest) and I got some troubles.

 

 <ad:ResizingPanel Orientation="Horizontal" Name="rpResizer">
                <ad:DocumentPane Name="dpDocumentPane">
                    <ad:DocumentContent Title="test" Name="dcTest" IsCloseable="False">
                            <Grid x:Name="MainGrid">
                            </Grid>
                        </ScrollViewer>
                    </ad:DocumentContent>
                </ad:DocumentPane>
                <ad:DockablePane Name="dpMainPanel">
                    <ad:DockableContent Title="Log" IsCloseable="False" Name="dcLog">
                        <ListBox Grid.Row="1" Margin="10" />

                    </ad:DockableContent>
                </ad:DockablePane>
            </ad:ResizingPanel>

 

Above XAML gets serialized as

 

<DockingManager version="1.3.0">
    <ResizingPanel ResizeWidth="*" ResizeHeight="*" EffectiveSize="0,0" Orientation="Horizontal">
        <DocumentPane IsMain="true">
            <DocumentContent Name="dcTest" />
        </DocumentPane>
        <DockablePane ResizeWidth="0.5*" ResizeHeight="*" EffectiveSize="505,553.86" ID="fc25d0e1-b4b8-4baf-b961-24a3fcf57260" Anchor="Right" IsAutoHidden="false">
            <DockableContent Name="dcLog" FloatingWindowSize="250,400" />
        </DockablePane>
    </ResizingPanel>
    <Hidden />
    <Windows />
</DockingManager>

 

I restore the layout and I notice the resizer position is moved to the right!! Then I save it again (without touching anything in the GUI):

 

<DockingManager version="1.3.0">
    <ResizingPanel ResizeWidth="*" ResizeHeight="*" EffectiveSize="0,0" Orientation="Horizontal">
        <DocumentPane IsMain="true">
            <DocumentContent Name="dcTest" />
        </DocumentPane>
        <DockablePane ResizeWidth="0.333333333333333*" ResizeHeight="*" EffectiveSize="336.666666666667,553.86" ID="fc25d0e1-b4b8-4baf-b961-24a3fcf57260" Anchor="Right" IsAutoHidden="false">
            <DockableContent Name="dcLog" FloatingWindowSize="250,400" />
        </DockablePane>
    </ResizingPanel>
    <Hidden />
    <Windows />
</DockingManager>

 

It is very critical for me and forces me to go back to 1.2 :(  With 1.2 I had often a zero-sized layout file generated .

Jun 25, 2010 at 9:13 PM
Edited Jun 25, 2010 at 9:18 PM

The RestoreLayout is called on DockManager Loaded event  and SaveLayout is called on Window Closing event.

Jun 26, 2010 at 11:03 AM

Hi,

thank you for the feedback, now fix is included in latest build,

Ado

Jun 26, 2010 at 3:13 PM

That is an excellent news as I also plan a new release in the next days. Thanks a lot for the library and for the support!