<UserControl x:Class="TutorialsSilverlight.LargeDataset"
    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="400" d:DesignWidth="487" 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>
        <c1:C1DataSource Name="c1DataSource1" DomainContextTypeName="TutorialsSilverlight.Web.DomainService1" >
            <!-- An RiaViewSource of Order Details in Virtual Mode. -->
            <c1:RiaViewSource QueryName="GetOrder_Details" VirtualMode="Managed"/>
        </c1:C1DataSource>

        <c1:C1FlexGrid Grid.Row="1" Name="c1FlexGrid1" ItemsSource="{Binding [GetOrder_Details], ElementName=c1DataSource1}" AutoGenerateColumns="False" >
            <c1:C1FlexGrid.Columns>
                <c1:Column Header="Order ID" Binding="{Binding OrderID}"/>
                <c1:Column Header="Product ID" Binding="{Binding ProductID}" />
                <c1:Column Header="Unit price" Binding="{Binding UnitPrice, StringFormat=c}"/>
                <c1:Column Header="Quantity" Binding="{Binding Quantity}"/>
                <c1:Column Header="Discount" Binding="{Binding Discount}"/>
            </c1:C1FlexGrid.Columns>
            <!-- A control handler that manages virtual mode in this C1FlexGrid. -->
            <c1:C1DataSource.ControlHandler>
                <c1:ControlHandler VirtualMode="True" />
            </c1:C1DataSource.ControlHandler>
        </c1:C1FlexGrid>
    </Grid>
</UserControl>
