<UserControl x:Class="RiaServicesExample.MainPage"
    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:web="clr-namespace:RiaServicesExample.Web"
    xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Resources>
            <riaControls:DomainDataSource x:Key="customersDataSource" AutoLoad="True" QueryName="GetCustomers">
                <riaControls:DomainDataSource.DomainContext>
                    <web:NorthwindContext />
                </riaControls:DomainDataSource.DomainContext>
            </riaControls:DomainDataSource>
        </Grid.Resources>

        <telerik:RadGridView x:Name="radGridView" DataContext="{StaticResource customersDataSource}" 
                             ItemsSource="{Binding Data}" ShowInsertRow="True" />
        
    </Grid>
</UserControl>
