<Resource>
  <Folder name="GacGenConfig">
    <Folder name="Cpp">
      <Text name="SourceFolder">Source</Text>
      <Text name="Resource">..\..\UIRes\MenuVisibility.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="MenuVisibility" ClientSize="x:640 y:480">
        <att.BoundsComposition-set PreferredMinSize="x:640 y:480"/>
        <Table AlignmentToParent="left:0 top:0 right:0 bottom:0">
          <att.Rows>
            <_>composeType:MinSize</_>
            <_>composeType:Percentage percentage:1.0</_>
          </att.Rows>
          <att.Columns>
            <_>composeType:Percentage percentage:1.0</_>
          </att.Columns>

          <Cell Site="row:0 column:0">
            <ToolstripMenuBar>
              <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
              <MenuBarButton ref.Name="menuItems" Text="Items">
                <att.SubMenu-set>
                  <MenuItemButton Text="Item 1"/>
                  <MenuItemButton Text="Item 2"/>
                  <MenuItemButton Text="Item 3"/>
                  <MenuItemButton Text="Item 4"/>
                  <MenuItemButton Text="Item 5"/>
                  <MenuItemButton Text="Item 6"/>
                  <MenuItemButton Text="Item 7"/>
                  <MenuItemButton Text="Item 8"/>
                  <MenuItemButton Text="Item 9"/>
                  <MenuItemButton Text="Item 10"/>
                </att.SubMenu-set>
              </MenuBarButton>
            </ToolstripMenuBar>
          </Cell>

          <Cell Site="row:1 column:0">
            <TextList ref.Name="checkList" View="Check">
              <att.BoundsComposition-set AlignmentToParent="left:5 top:5 right:5 bottom:5"/>
              <att.Items>
                <TextItem Text="Item 1" Checked="true"/>
                <TextItem Text="Item 2" Checked="true"/>
                <TextItem Text="Item 3" Checked="true"/>
                <TextItem Text="Item 4" Checked="true"/>
                <TextItem Text="Item 5" Checked="true"/>
                <TextItem Text="Item 6" Checked="true"/>
                <TextItem Text="Item 7" Checked="true"/>
                <TextItem Text="Item 8" Checked="true"/>
                <TextItem Text="Item 9" Checked="true"/>
                <TextItem Text="Item 10" Checked="true"/>
              </att.Items>
              <ev.ItemChecked-eval>
                <![CDATA[
                  {
                    var checked = checkList.Items[arguments.itemIndex].Checked;
                    var menuItem = cast (GuiToolstripButton*) menuItems.ToolstripSubMenu.ToolstripItems[arguments.itemIndex];
                    menuItem.Visible = checked;
                  }
                ]]>
              </ev.ItemChecked-eval>
            </TextList>
          </Cell>
        </Table>
      </Window>
    </Instance>
  </Instance>
</Resource>