Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1240
LoadLayout exception if location=”Unknown”
posted

After calling SaveLayout, I get the resulting xml:

 

  <?xml version="1.0" encoding="utf-8" ?>

- <xamDockManager version="10.2.20102.1014">

- <contentPanes>

  <contentPane name="LogPrimaryPane" location="Unknown" lastActivatedTime="2010-09-21T16:36:02.646119Z" />

  <contentPane name="SimpleEditorPane" location="DockedBottom" visibility="Collapsed" />

  <contentPane name="ConsiderationPane" location="DockedRight" visibility="Collapsed" />

  <contentPane name="TestBarPane" location="DockedBottom" visibility="Collapsed" />

  <contentPane name="FailureDetailsPane" location="DockedBottom" visibility="Collapsed" />

  <contentPane name="AssetHistoryPane" location="DockedBottom" visibility="Collapsed" />

  </contentPanes>

- <panes>

- <splitPane splitterOrientation="Horizontal" location="DockedBottom" extent="250">

  <contentPane name="SimpleEditorPane" />

  </splitPane>

- <splitPane splitterOrientation="Vertical" location="DockedRight" extent="250">

  <contentPane name="ConsiderationPane" />

  </splitPane>

- <splitPane splitterOrientation="Horizontal" location="DockedBottom" extent="200">

- <splitPane splitterOrientation="Vertical">

  <contentPane name="TestBarPane" />

  <contentPane name="FailureDetailsPane" />

  <contentPane name="AssetHistoryPane" />

  </splitPane>

  </splitPane>

  </panes>

  </xamDockManager>

 

When I later load this layout, I get the exception "Invalid pane location for ContentPane 'LogPrimaryPane'."

 

Since I don’t have control over the way SaveLayout works, is there any way I can get LoadLayout to work without having to modify the xml directly?

 

Thanks

Dan