开发者

Restore Layout does not restore the modules content

开发者 https://www.devze.com 2023-03-26 00:28 出处:网络
i\"m using prism with AvalonDoc. when i try to restore the layout (on the event handler of the menu button \"RestoreLayout\")

i"m using prism with AvalonDoc.

when i try to restore the layout (on the event handler of the menu button "RestoreLayout")

dockManager.RestoreLayout(FileName);

i do get the correct layout structure, but the content of every region is now empty. do i need to reload to modules or something like that ?

the avalondoc code im my xaml code is something like that:

  <ad:ResizingPanel ad:ResizingPanel.ResizeWidth="*" Orientation="Vertical" VerticalAlignment="Top">

   <ad:DockablePane ad:ResizingPanel.ResizeHeight="150" prism:RegionManager.RegionName="RegionDocPane1">

                    <ad:DockableCon开发者_开发知识库tent Name="DocContent1" HorizontalAlignment="Left"/>

    </ad:DockablePane>

            </ad:ResizingPanel>

                <ad:DockableContent Name="DocContent2" HorizontalAlignment="Right"/>

        </ad:ResizingPanel>

    </ad:DockingManager>


It won't restore your content because Avalon dock (and most docking mechanisms) don't and can't store your user-controls state. You need to do this manually.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号