<!--
 =============================================================================================
  This file was AUTO-GENERATED by "WPF Views" Xomega.Net generator.
 
  Manual CHANGES to this file WILL BE LOST when the code is regenerated.
 =============================================================================================
-->
<xov:WPFSearchView xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:xov="clr-namespace:Xomega.Framework.Views;assembly=Xomega.Framework.Wpf"
                   xmlns:o="clr-namespace:AdventureWorks.Client.Objects;assembly=AdventureWorks.Client.Common"
                   xmlns:v="clr-namespace:AdventureWorks.Client.Wpf"
                   xmlns:xom="clr-namespace:Xomega.Framework;assembly=Xomega.Framework.Wpf"
                   x:Class="AdventureWorks.Client.Wpf.CustomerListView">
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="*"/>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition Width="Auto"/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <TextBlock Grid.Row="0" Name="viewTitle" Text="View Title"
               Style="{StaticResource ViewTitleStyle}"
               Margin="10,0,0,5"/>
    <Expander Grid.Row="1" Name="pnlCriteria" Header="Criteria" IsExpanded="True"
              xom:Data.ObjectBinding=""
              Margin="10,5,10,0">
      <Grid>
        <Grid.RowDefinitions>
          <RowDefinition Height="Auto"/>
          <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="Auto"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Label Grid.Row="0" Grid.Column="0" Name="lblTerritoryId"
               Style="{StaticResource LabelStyle}">_Territory Id:</Label>
        <ComboBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2"
                  xom:Property.Label="{Binding ElementName=lblTerritoryId}"
                  x:Name="ctlTerritoryId"
                  xom:Property.Name="{x:Static o:CustomerCriteria.TerritoryId}"
                  Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="1" Grid.Column="0" Name="lblPersonName"
               Style="{StaticResource LabelStyle}">_Person Name:</Label>
        <ComboBox Grid.Row="1" Grid.Column="1"
                  xom:Property.Label="{Binding ElementName=lblPersonName}"
                  x:Name="ctlPersonNameOperator"
                  xom:Property.Name="{x:Static o:CustomerCriteria.PersonNameOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <TextBox Grid.Row="1" Grid.Column="2" x:Name="ctlPersonName"
                 xom:Property.Name="{x:Static o:CustomerCriteria.PersonName}"
                 Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="0" Grid.Column="3" Name="lblStoreName"
               Style="{StaticResource LabelStyle}">_Store Name:</Label>
        <ComboBox Grid.Row="0" Grid.Column="4"
                  xom:Property.Label="{Binding ElementName=lblStoreName}"
                  x:Name="ctlStoreNameOperator"
                  xom:Property.Name="{x:Static o:CustomerCriteria.StoreNameOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <TextBox Grid.Row="0" Grid.Column="5" x:Name="ctlStoreName"
                 xom:Property.Name="{x:Static o:CustomerCriteria.StoreName}"
                 Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="1" Grid.Column="3" Name="lblAccountNumber"
               Style="{StaticResource LabelStyle}">_Account Number:</Label>
        <ComboBox Grid.Row="1" Grid.Column="4"
                  xom:Property.Label="{Binding ElementName=lblAccountNumber}"
                  x:Name="ctlAccountNumberOperator"
                  xom:Property.Name="{x:Static o:CustomerCriteria.AccountNumberOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <TextBox Grid.Row="1" Grid.Column="5" x:Name="ctlAccountNumber"
                 xom:Property.Name="{x:Static o:CustomerCriteria.AccountNumber}"
                 Style="{StaticResource ControlStyle}"/>
      </Grid>
    </Expander>
    <v:Errors Grid.Row="2" x:Name="pnlErrors" Margin="10,0"/>
    <DockPanel Grid.Row="3" Margin="10">
      <Button Name="btnSearch" Width="75">_Search</Button>
      <Button HorizontalAlignment="Left" Margin="10,0,0,0" Name="btnReset" Width="75">_Reset</Button>
    </DockPanel>
    <v:AppliedCriteria Grid.Row="4" x:Name="pnlAppliedCriteria" Margin="10,0"/>
    <ListView Grid.Row="5" Name="gridResults" xom:Data.ObjectBinding="" Margin="10,0">
      <ListView.View>
        <GridView>
          <GridView.Columns>
            <GridViewColumn Header="Store Name">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:CustomerList.StoreName}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Person Name">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:CustomerList.PersonName}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Account Number">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:CustomerList.AccountNumber}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Territory Id">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:CustomerList.TerritoryId}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
          </GridView.Columns>
        </GridView>
      </ListView.View>
    </ListView>
    <DockPanel Grid.Row="6" VerticalAlignment="Top" Margin="10">
      <Button Name="btnClose" Width="75" DockPanel.Dock="Right">_Close</Button>
      <Button HorizontalAlignment="Right" Margin="0,0,10,0" Name="btnSelect" Width="75">Se_lect</Button>
    </DockPanel>
    <GridSplitter Grid.RowSpan="7" Name="splitter" Grid.Column="1" Width="5" Margin="0,5,0,5"
                  HorizontalAlignment="Center"
                  Visibility="Collapsed"/>
    <ScrollViewer Grid.RowSpan="7" Name="pnlDetails" Grid.Column="2"
                  VerticalScrollBarVisibility="Disabled"
                  HorizontalScrollBarVisibility="Auto"/>
  </Grid>
</xov:WPFSearchView>