DWManager.LayoutData.Save to LoadToolWindowLayoutFromFile

Docking/MDI for Windows Forms Forum

Posted 10 years ago by Javier Muñoz
Version: 2.0.0084
Avatar
Good morning,

I would like to know if we can load the function LoadToolWindowLayoutFromFile from the visual studio’s version 2005/2008 (v2), if we can generated a file with the function ActiproSoftware.DockableWindow.DWManager.LayoutData.Save(“C:\Example.xml”) from the visual studio’s version 2003 (v1).

I attached some code in the Example.xml file.

<?xml version="1.0"?>
<!--

  DockableWindow/TabStripPanel Control
  Copyright (c) 2001-2002 Actipro Software LLC.  All rights reserved.
  http://www.actiprosoftware.com/products/dotnet/

-->
<dockable-window-layout version="2.0">
  <custom-data />
  <manager>
    <container-container preferred-size="1253, 871" orientation="Horizontal">
      <tool-window-container preferred-size="1253, 474" selected-index="1">
        <tool-window key="Escenario 1@Cotiza1">
          <text>Cotizaciones</text>
          <title-bar-text>Cotizaciones</title-bar-text>
          <image-index>2</image-index>
          <child-name>ICUCCotizaciones</child-name>
          <undocked-bounds>40, 90, 955, 200</undocked-bounds>
          <preferred-size>1253, 474</preferred-size>
          <auto-hide-size>955, 200</auto-hide-size>
        </tool-window>
        <tool-window key="Escenario 1@Ordenes1">
          <text>Ordenes</text>
          <title-bar-text>Ordenes</title-bar-text>
          <image-index>7</image-index>
          <child-name>ICUCGestionOrdenes</child-name>
          <undocked-bounds>54, 200, 965, 200</undocked-bounds>
          <preferred-size>1253, 474</preferred-size>
          <auto-hide-size>965, 200</auto-hide-size>
        </tool-window>
      </tool-window-container>
      <workspace preferred-size="1253, 871" />
      <container-container preferred-size="1253, 366" orientation="Vertical">
        <tool-window-container preferred-size="904, 361" selected-index="0">
          <tool-window key="Escenario 1@listOrdenes1">
            <text>ROU1</text>
            <title-bar-text>ROU1</title-bar-text>
            <image-index>0</image-index>
            <child-name>ICUCOrdenesHorquilla</child-name>
            <undocked-bounds>1360, 293, 838, 370</undocked-bounds>
            <preferred-size>904, 361</preferred-size>
            <auto-hide-size>838, 370</auto-hide-size>
          </tool-window>
          <tool-window key="Escenario 1@tickEjec1">
            <text>Ticker Ejecuciones</text>
            <title-bar-text>Ticker Ejecuciones</title-bar-text>
            <image-index>11</image-index>
            <child-name>ICUCEjecuciones</child-name>
            <undocked-bounds>28, 298, 783, 226</undocked-bounds>
            <preferred-size>904, 361</preferred-size>
            <auto-hide-size>783, 226</auto-hide-size>
          </tool-window>
        </tool-window-container>
        <tool-window-container preferred-size="348, 361" selected-index="0">
          <tool-window key="Escenario 1@HorqRV3">
            <text>ROU1</text>
            <title-bar-text>ROU1</title-bar-text>
            <image-index>2</image-index>
            <child-name>ICUCHorquillaRV</child-name>
            <undocked-bounds>307, 545, 356, 385</undocked-bounds>
            <preferred-size>348, 361</preferred-size>
            <auto-hide-size>358, 142</auto-hide-size>
          </tool-window>
          <tool-window key="Escenario 1@HorqRV2">
            <text>ROU2</text>
            <title-bar-text>ROU2</title-bar-text>
            <image-index>2</image-index>
            <child-name>ICUCHorquillaRV</child-name>
            <undocked-bounds>677, 530, 356, 385</undocked-bounds>
            <preferred-size>348, 361</preferred-size>
            <auto-hide-size>358, 142</auto-hide-size>
          </tool-window>
        </tool-window-container>
      </container-container>
    </container-container>
  </manager>
  <auto-hide>
    <left>
      <auto-hide-group>
        <tool-window key="Escenario 1@selValoresDG1">
          <text>Selector</text>
          <title-bar-text>Selector</title-bar-text>
          <image-index>5</image-index>
          <child-name>ICUCSelValoresDG</child-name>
          <undocked-bounds>40, 90, 200, 400</undocked-bounds>
          <preferred-size>192, 871</preferred-size>
          <auto-hide-size>200, 400</auto-hide-size>
          <manager-dock-state>
            <orientation>Vertical</orientation>
            <workspace-side>Left</workspace-side>
            <next-to-workspace>False</next-to-workspace>
          </manager-dock-state>
        </tool-window>
      </auto-hide-group>
    </left>
    <top />
    <right />
    <bottom />
  </auto-hide>
</dockable-window-layout>

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Javier,

Sorry but the layout file structure is different between the two products so you'd need to recreate your layout in UIStudio and save the layout from UIStudio instead.


Actipro Software Support

The latest build of this product (v2020.1 build 0400) was released 9 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.