<UserControl x:Class="TutorialsSilverlight.ClientSideQuerying"
    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"
    mc:Ignorable="d"
    d:DesignHeight="554" d:DesignWidth="943" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
      
        <!-- Data binding of the following controls is specified in code. -->

        <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="0,2,0,2">
            <TextBlock Text="Non-discontinued Products with Unit Price Higher than $30" />
            <TextBlock Text=". Count:" />
            <TextBlock Text="Count" Name="textBlockCount" />
        </StackPanel>
        
        <c1:C1FlexGrid Grid.Row="1" AutoGenerateColumns="True" Name="dataGrid1" Margin="0,2,0,2"  />
        
        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,5,0,0">
            <Button Margin="0,5,5,5" x:Name="raiseSeafood">Raise Seafood Prices by 20%</Button>
            <Button Margin="0,5,5,5" x:Name="cutSeafood">Lower Seafood Prices by 20%</Button>
            <Button Width="70" Margin="10,5,5,5" x:Name="addItem">Add</Button>
            <Button Width="70" Margin="0,5,5,5" x:Name="deleteItem">Delete</Button>
        </StackPanel>
    </Grid>
</UserControl>
