<?xml version="1.0" encoding="utf-8"?>
<Resource>
  <Folder name="GacGenConfig">
    <Folder name="ResX86">
      <Text name="Resource">..\..\UIRes\32bits\control_basic_datepicker.bin</Text>
    </Folder>
    <Folder name="ResX64">
      <Text name="Resource">..\..\UIRes\64bits\control_basic_datepicker.bin</Text>
    </Folder>
  </Folder>
  <Folder name="MainWindow">
    <Instance name="MainWindowResource">
      <Instance ref.Class="sample::MainWindow">
        <ref.Ctor><![CDATA[
        {
          localeList.Items.Add(new TextItem^("en-US"));
          localeList.Items.Add(new TextItem^("ja-JP"));
          localeList.Items.Add(new TextItem^("zh-CN"));
          localeCombo.SelectedIndex = 0;
        }
        ]]></ref.Ctor>
        <Window ref.Name="self" Text="control_basic_datepicker" ClientSize="x:480 y:320">
          <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" CellPadding="5" BorderVisible="false" MinSizeLimitation="LimitToElementAndChildren">
            <att.Rows>
              <CellOption>composeType:Percentage percentage:0.5</CellOption>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:Percentage percentage:0.5</CellOption>
            </att.Rows>
            <att.Columns>
              <CellOption>composeType:Percentage percentage:0.5</CellOption>
              <CellOption>composeType:MinSize</CellOption>
              <CellOption>composeType:Percentage percentage:0.5</CellOption>
            </att.Columns>

            <Cell Site="row:1 column:1">
              <Table AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
                <att.Rows>
                  <CellOption>composeType:Percentage percentage:0.5</CellOption>
                  <CellOption>composeType:MinSize</CellOption>
                  <CellOption>composeType:Percentage percentage:0.5</CellOption>
                </att.Rows>
                <att.Columns>
                  <CellOption>composeType:MinSize</CellOption>
                  <CellOption>composeType:Percentage percentage:1.0</CellOption>
                </att.Columns>

                <Cell Site="row:1 column:0">
                  <Label Text="Locale: "/>
                </Cell>

                <Cell Site="row:0 column:1 rowSpan:3">
                  <ComboBox ref.Name="localeCombo">
                    <att.BoundsComposition-set AlignmentToParent="left:0 top:0 right:0 bottom:0"/>
                    <att.ListControl>
                      <TextList ref.Name="localeList" HorizontalAlwaysVisible="false" VerticalAlwaysVisible="false"/>
                    </att.ListControl>
                  </ComboBox>
                </Cell>
              </Table>
            </Cell>

            <Cell Site="row:2 column:1">
              <DatePicker ref.Name="datePicker">
                <att.DateLocale-bind>localeCombo.SelectedIndex == -1 ? Application::GetApplication().Locale : cast Locale localeCombo.Text</att.DateLocale-bind>
              </DatePicker>
            </Cell>
          </Table>
        </Window>
      </Instance>
    </Instance>
  </Folder>
</Resource>