<!--
 =============================================================================================
  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.SalesOrderListView"
                   ViewWidth="1760"
                   ViewHeight="860">
  <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"/>
          <RowDefinition Height="Auto"/>
          <RowDefinition Height="Auto"/>
          <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="Auto"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
          <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Label Grid.Row="0" Grid.Column="0" Name="lblSalesOrderNumber"
               Style="{StaticResource LabelStyle}">_Sales Order Number:</Label>
        <ComboBox Grid.Row="0" Grid.Column="1"
                  xom:Property.Label="{Binding ElementName=lblSalesOrderNumber}"
                  x:Name="ctlSalesOrderNumberOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.SalesOrderNumberOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <TextBox Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="2" x:Name="ctlSalesOrderNumber"
                 xom:Property.Name="{x:Static o:SalesOrderCriteria.SalesOrderNumber}"
                 Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="1" Grid.Column="0" Name="lblStatus"
               Style="{StaticResource LabelStyle}">_Status:</Label>
        <ComboBox Grid.Row="1" Grid.Column="1"
                  xom:Property.Label="{Binding ElementName=lblStatus}"
                  x:Name="ctlStatusOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.StatusOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <ListBox Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" x:Name="ctlStatus"
                 xom:Property.Name="{x:Static o:SalesOrderCriteria.Status}"
                 Style="{StaticResource ControlStyle}"
                 MinHeight="21"
                 MaxHeight="84"/>
        <Label Grid.Row="2" Grid.Column="0" Name="lblOrderDate"
               Style="{StaticResource LabelStyle}">_Order Date:</Label>
        <ComboBox Grid.Row="2" Grid.Column="1"
                  xom:Property.Label="{Binding ElementName=lblOrderDate}"
                  x:Name="ctlOrderDateOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.OrderDateOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <DatePicker Grid.Row="2" Grid.Column="2" x:Name="ctlOrderDate"
                    xom:Property.Name="{x:Static o:SalesOrderCriteria.OrderDate}"
                    Style="{StaticResource ControlStyle}"/>
        <DatePicker Grid.Row="2" Grid.Column="3" x:Name="ctlOrderDate2"
                    xom:Property.Name="{x:Static o:SalesOrderCriteria.OrderDate2}"
                    Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="3" Grid.Column="0" Name="lblDueDate"
               Style="{StaticResource LabelStyle}">_Due Date:</Label>
        <ComboBox Grid.Row="3" Grid.Column="1"
                  xom:Property.Label="{Binding ElementName=lblDueDate}"
                  x:Name="ctlDueDateOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.DueDateOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <DatePicker Grid.Row="3" Grid.Column="2" x:Name="ctlDueDate"
                    xom:Property.Name="{x:Static o:SalesOrderCriteria.DueDate}"
                    Style="{StaticResource ControlStyle}"/>
        <DatePicker Grid.Row="3" Grid.Column="3" x:Name="ctlDueDate2"
                    xom:Property.Name="{x:Static o:SalesOrderCriteria.DueDate2}"
                    Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="4" Grid.Column="0" Name="lblTotalDue"
               Style="{StaticResource LabelStyle}">_Total Due:</Label>
        <ComboBox Grid.Row="4" Grid.Column="1"
                  xom:Property.Label="{Binding ElementName=lblTotalDue}"
                  x:Name="ctlTotalDueOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.TotalDueOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <TextBox Grid.Row="4" Grid.Column="2" x:Name="ctlTotalDue"
                 xom:Property.Name="{x:Static o:SalesOrderCriteria.TotalDue}"
                 Style="{StaticResource ControlStyle}"/>
        <TextBox Grid.Row="4" Grid.Column="3" x:Name="ctlTotalDue2"
                 xom:Property.Name="{x:Static o:SalesOrderCriteria.TotalDue2}"
                 Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="0" Grid.Column="4" Name="lblCustomerStore"
               Style="{StaticResource LabelStyle}">_Customer Store:</Label>
        <ComboBox Grid.Row="0" Grid.Column="5"
                  xom:Property.Label="{Binding ElementName=lblCustomerStore}"
                  x:Name="ctlCustomerStoreOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.CustomerStoreOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <TextBox Grid.Row="0" Grid.Column="6" Grid.ColumnSpan="2" x:Name="ctlCustomerStore"
                 xom:Property.Name="{x:Static o:SalesOrderCriteria.CustomerStore}"
                 Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="1" Grid.Column="4" Name="lblCustomerName"
               Style="{StaticResource LabelStyle}">_Customer Name:</Label>
        <ComboBox Grid.Row="1" Grid.Column="5"
                  xom:Property.Label="{Binding ElementName=lblCustomerName}"
                  x:Name="ctlCustomerNameOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.CustomerNameOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <TextBox Grid.Row="1" Grid.Column="6" Grid.ColumnSpan="2" x:Name="ctlCustomerName"
                 xom:Property.Name="{x:Static o:SalesOrderCriteria.CustomerName}"
                 Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="2" Grid.Column="4" Name="lblGlobalRegion"
               Style="{StaticResource LabelStyle}">_Global Region:</Label>
        <ComboBox Grid.Row="2" Grid.Column="5" Grid.ColumnSpan="3"
                  xom:Property.Label="{Binding ElementName=lblGlobalRegion}"
                  x:Name="ctlGlobalRegion"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.GlobalRegion}"
                  Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="3" Grid.Column="4" Name="lblTerritoryId"
               Style="{StaticResource LabelStyle}">_Sales Territory:</Label>
        <ComboBox Grid.Row="3" Grid.Column="5"
                  xom:Property.Label="{Binding ElementName=lblTerritoryId}"
                  x:Name="ctlTerritoryIdOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.TerritoryIdOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <ComboBox Grid.Row="3" Grid.Column="6" Grid.ColumnSpan="2" x:Name="ctlTerritoryId"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.TerritoryId}"
                  Style="{StaticResource ControlStyle}"/>
        <Label Grid.Row="4" Grid.Column="4" Name="lblSalesPersonId"
               Style="{StaticResource LabelStyle}">_Sales Person:</Label>
        <ComboBox Grid.Row="4" Grid.Column="5"
                  xom:Property.Label="{Binding ElementName=lblSalesPersonId}"
                  x:Name="ctlSalesPersonIdOperator"
                  xom:Property.Name="{x:Static o:SalesOrderCriteria.SalesPersonIdOperator}"
                  Style="{StaticResource OperatorStyle}"/>
        <ListBox Grid.Row="4" Grid.Column="6" Grid.ColumnSpan="2" x:Name="ctlSalesPersonId"
                 xom:Property.Name="{x:Static o:SalesOrderCriteria.SalesPersonId}"
                 Style="{StaticResource ControlStyle}"
                 MinHeight="21"
                 MaxHeight="84"/>
      </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="SO#">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock>
                    <Hyperlink Name="LinkDetails"
                               Command="{Binding Path=LinkDetails_Command, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type xov:WPFView}}}"
                               CommandParameter="{Binding}"
                               xom:Property.Name="{x:Static o:SalesOrderList.SalesOrderNumber}"/>
                  </TextBlock>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Status">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.Status}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Order Date">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.OrderDate}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Ship Date">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.ShipDate}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Due Date">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.DueDate}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Total Due">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.TotalDue}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Online">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.OnlineOrderFlag}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Customer Store">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.CustomerStore}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Customer Name">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.CustomerName}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Sales Person">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.SalesPersonId}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Sales Territory">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock xom:Property.Name="{x:Static o:SalesOrderList.TerritoryId}"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
          </GridView.Columns>
        </GridView>
      </ListView.View>
    </ListView>
    <DockPanel Grid.Row="6" VerticalAlignment="Top" Margin="10">
      <TextBlock>
        <Hyperlink Name="LinkNew"
                   Command="{Binding Path=LinkNew_Command, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type xov:WPFView}}}">New</Hyperlink>
      </TextBlock>
      <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>