<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1DataGrid_DefaultLocalization2010.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:local="clr-namespace:C1DataGrid_DefaultLocalization2010" xmlns:common="clr-namespace:SamplesCommon;assembly=SamplesCommon.5">
    <UserControl.Resources>
        <local:Models x:Name="Models" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="33" />
            <RowDefinition Height="0.909*" />
        </Grid.RowDefinitions>
        <c1:C1DataGrid x:Name="grid" AutoGenerateColumns="False" CanUserGroup="True" NewRowVisibility="Top" MaxHeight="500" RowHeight="70" GroupRowHeight="30" Grid.Row="2" Margin="8,8,8,8" VerticalAlignment="Top">
            <c1:C1DataGrid.Columns>
                <c1:DataGridTextColumn Binding="{Binding ProductNumber}" Header="Product Number" SortMemberPath="ProductNumber" FilterMemberPath="ProductNumber" SortState="Ascending, 1" />
                <c1:DataGridTextColumn Binding="{Binding Name}" Header="Name" SortMemberPath="Name" FilterMemberPath="Name" />
                <c1:DataGridNumericColumn Binding="{Binding StandardCost}" Header="Standard Cost" SortMemberPath="StandardCost" FilterMemberPath="StandardCost" />
                <c1:DataGridComboBoxColumn Binding="{Binding ProductModelID}" Header="Model" SortMemberPath="ProductModelID" FilterMemberPath="ProductModelID" ItemsSource="{StaticResource Models}" DisplayMemberPath="Name" SelectedValuePath="ProductModelID" SortState="Ascending, 0" />
                <c1:DataGridCheckBoxColumn Binding="{Binding Available}" Header="Available" SortMemberPath="Available" FilterMemberPath="Available" />
                <c1:DataGridDateTimeColumn Binding="{Binding ExpirationDate}" Header="Expiration" SortMemberPath="ExpirationDate" FilterMemberPath="ExpirationDate" />
            </c1:C1DataGrid.Columns>
        </c1:C1DataGrid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" Margin="8,0,8,0">
            <TextBlock Text="Language" TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Center" Margin="8,0,0,0" />
            <common:LocalizationComboBox Height="22" Width="150" Margin="4,0,0,0" />
        </StackPanel>
    </Grid>
</UserControl>