<UserControl x:Class="TutorialsSilverlight.CategoryProductsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:TutorialsSilverlight"
    mc:Ignorable="d"
    d:DesignHeight="503" d:DesignWidth="874" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Grid>
        <Grid.DataContext>
            <!-- Create a view model for this view. -->
            <local:CategoryProductsViewModel />
        </Grid.DataContext>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <!-- The following controls are bound to live views defined in CategoryProductsViewModel. -->
        <StackPanel Orientation="Horizontal" Margin="2">
            <TextBlock Text="Category: " VerticalAlignment="Center"/>
            <ComboBox Name="comboBox1" Width="186" ItemsSource="{Binding Categories}" DisplayMemberPath="CategoryName" />
        </StackPanel>
        <c1:C1FlexGrid AutoGenerateColumns="True" Grid.Row="1" ItemsSource="{Binding Products}" Name="dataGrid1"  />
    </Grid>
</UserControl>
