﻿<ElementStructure xmlns="http://www.composite.net/ns/management/trees/treemarkup/1.0" xmlns:f="http://www.composite.net/ns/function/1.0">

  <ElementStructure.AutoAttachments>
    <NamedParent Name="Data" Position="Top"/>
  </ElementStructure.AutoAttachments>

  <ElementRoot>
    <Children>
      <Element Label="Items" Id="ItemsRoot">
        <Children>
          <DataElements Type="Demo.IItem, SimpleType" Label="${C1:Data:Demo.IItem:Title}" >
            <Actions>
              <EditDataAction Label="Edit" CustomFormMarkupPath="~/App_Data/Composite/DynamicTypeForms/ItemForm.xml" />
              <DeleteDataAction Label="Delete"/>
            </Actions>
          </DataElements>
        </Children>
      </Element>      
    </Children>
    <Actions>
      <AddDataAction Label="Add" Type="Demo.IItem, SimpleType" CustomFormMarkupPath="~/App_Data/Composite/DynamicTypeForms/ItemForm.xml"/>
    </Actions>
  </ElementRoot>
</ElementStructure>
