<?xml version="1.0" encoding="utf-8"?>
<Resource>
  <Folder name="GacGenConfig">
    <Folder name="Cpp">
      <Text name="SourceFolder">Source</Text>
      <Text name="Resource">..\..\UIRes\Event_Script.bin</Text>
      <Text name="NormalInclude">GacUI.h</Text>
      <Text name="Name">Demo</Text>
    </Folder>
  </Folder>
  <Folder name="MainWindow">
    <Instance name="MainWindowResource">
      <Instance ref.CodeBehind="false" ref.Class="demo::MainWindow">
        <Window Text="Event_Script" ClientSize="x:480 y:320">
          <att.BoundsComposition-set PreferredMinSize="x:480 y:320"/>
          <Table CellPadding="5" MinSizeLimitation="LimitToElementAndChildren" AlignmentToParent="left:0 top:0 right:0 bottom:0">
            <att.Rows>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:Percentage percentage:1.0</CellOption>
            </att.Rows>
            <att.Columns>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:Absolute absolute:100</CellOption>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:Percentage percentage:1.0</CellOption>
            </att.Columns>

            <Cell Site="row:0 column:0" InternalMargin="left:0 top:5 right:0 bottom:5">
              <Label Text="A : "/>
            </Cell>
            <Cell Site="row:0 column:1 columnSpan:2">
              <SinglelineTextBox ref.Name="textBoxA" Text="1">
                <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
              </SinglelineTextBox>
            </Cell>

            <Cell Site="row:1 column:0" InternalMargin="left:0 top:5 right:0 bottom:5">
              <Label Text="B : "/>
            </Cell>
            <Cell Site="row:1 column:1 columnSpan:2">
              <SinglelineTextBox ref.Name="textBoxB" Text="2">
                <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
              </SinglelineTextBox>
            </Cell>

            <Cell Site="row:2 column:0" InternalMargin="left:0 top:5 right:0 bottom:5">
              <Label Text="A + B = : "/>
            </Cell>
            <Cell Site="row:2 column:1">
              <SinglelineTextBox ref.Name="textBoxC" Readonly="true">
                <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
              </SinglelineTextBox>
            </Cell>
            <Cell Site="row:2 column:2">
              <Button Text="Calculate">
                <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
                <ev.Clicked-eval>
                  <![CDATA[
                    {
                      var a = textBoxA.Text;
                      var b = textBoxB.Text;
                      var c = (cast int a) + (cast int b) ?? "<ERROR>";
                      textBoxC.Text = c;
                    }
                  ]]>
                </ev.Clicked-eval>
              </Button>
            </Cell>
          </Table>
        </Window>
      </Instance>
    </Instance>
  </Folder>
</Resource>