<Resource>
  <Folder name="GacGenConfig">
    <Folder name="Cpp">
      <Text name="SourceFolder">Source</Text>
      <Text name="Resource">..\..\UIRes\DocumentEditor.bin</Text>
      <Text name="NormalInclude">GacUI.h</Text>
      <Text name="ReflectionInclude">GacUIReflection.h</Text>
      <Text name="Name">Demo</Text>
    </Folder>
  </Folder>
  
  <Instance name="MainWindowResource">
    <Instance ref.CodeBehind="false" ref.Class="demo::MainWindow" xmlns:demo="demo::*">
      <Window ref.Name="self" Text="DocumentEditor" ClientSize="x:320 y:240">
        <att.BoundsComposition-set PreferredMinSize="x:320 y:240"/>
        <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="20">
          <att.Rows>
            <_>composeType:Percentage percentage:1.0</_>
            <_>composeType:Percentage percentage:1.0</_>
          </att.Rows>
          <att.Columns>
            <_>composeType:Percentage percentage:1.0</_>
          </att.Columns>

          <Cell Site="row:0 column:0">
            <Button Text="Open document editor with toolstrip">
              <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
              <ev.Clicked-eval>
                <![CDATA[
                  {
                    var window = new DocumentEditorToolstripWindow*();
                    window.MoveToScreenCenter();
                    window.ShowModalAndDelete(self, func():void{});
                  }
                ]]>
              </ev.Clicked-eval>
            </Button>
          </Cell>

          <Cell Site="row:1 column:0">
            <Button Text="Open document editor with ribbon">
              <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
              <ev.Clicked-eval>
                <![CDATA[
                  {
                    var window = new DocumentEditorRibbonWindow*();
                    window.MoveToScreenCenter();
                    window.ShowModalAndDelete(self, func():void{});
                  }
                ]]>
              </ev.Clicked-eval>
            </Button>
          </Cell>
        </Table>
      </Window>
    </Instance>
  </Instance>

  <Folder name="ToolbarImages" content="Link">ToolbarImages/Images.xml</Folder>
  <Folder name="DocumentComponents" content="Link">DocumentComponents.xml</Folder>
  <Folder name="DocumentEditorBase" content="Link">DocumentEditorBase.xml</Folder>
  <Folder name="DocumentEditorRibbon" content="Link">DocumentEditorRibbon.xml</Folder>
  <Folder name="DocumentEditorToolstrip" content="Link">DocumentEditorToolstrip.xml</Folder>

  <Instance name="DocumentEditorRibbonWindowResource">
    <Instance ref.CodeBehind="false" ref.Class="demo::DocumentEditorRibbonWindow" xmlns:demo="demo::*">
      <Window Text-bind="editor.Text" ClientSize="x:800 y:600">
        <demo:DocumentEditorRibbon ref.Name="editor">
          <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
        </demo:DocumentEditorRibbon>
      </Window>
    </Instance>
  </Instance>

  <Instance name="DocumentEditorToolstripWindowResource">
    <Instance ref.CodeBehind="false" ref.Class="demo::DocumentEditorToolstripWindow" xmlns:demo="demo::*">
      <Window Text-bind="editor.Text" ClientSize="x:800 y:600">
        <demo:DocumentEditorToolstrip ref.Name="editor">
          <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
        </demo:DocumentEditorToolstrip>
      </Window>
    </Instance>
  </Instance>
</Resource>