<navigation:Page
  x:Class="RadDataFormAndRIA.Home" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:local="clr-namespace:RadDataFormAndRIA"
  xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
	xmlns:svc="clr-namespace:RadDataFormAndRIA.Web.Services"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"  
  Style="{StaticResource PageStyle}">

    <Grid x:Name="LayoutRoot">
        <telerik:RadDomainDataSource x:Name="customersDataSource" 
									 AutoLoad="True" 
									 QueryName="GetCustomers" 
									 >
            <telerik:RadDomainDataSource.DomainContext>
                <svc:NorthWindDomainContext />
            </telerik:RadDomainDataSource.DomainContext>
        </telerik:RadDomainDataSource>

        <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">
            
            <telerik:RadDataForm Header="Customers"
                                     AutoGeneratingField="RadDataForm_AutoGeneratingField"
                                     CommandButtonsVisibility="Cancel,Commit,Edit,Navigation" 
                                     EditEnded="RadDataForm_EditEnded"
                                     ItemsSource="{Binding DataView, ElementName=customersDataSource}" />
        </StackPanel>
    </Grid>

</navigation:Page>