title: Binding to DataGrid's ItemSource in UserControl
body: <p>In my application I have to display multiple grid controls(I'm using DevExpress) with the same structure on one screen, so I decided to create UserControl for those grids.</p>
  
  <pre><code>&lt;UserControl x:Class="MyApp.GridUserControl"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
           mc:Ignorable="d" 
           xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"&gt;
  &lt;Border BorderBrush="Black" BorderThickness="1"&gt;
      &lt;Grid&gt;
          &lt;dxg:GridControl SelectionMode="Row"
                           AutoGenerateColumns="None"&gt;
  
              &lt;dxg:GridControl.Columns&gt;
                  &lt;dxg:GridColumn Header="{x:Static res:Resources.Time}" Binding="{Binding LessonTime}"/&gt;
                  &lt;dxg:GridColumn Header="{x:Static res:Resources.Lesson}" Binding="{Binding LessonName}"/&gt;
                  &lt;dxg:GridColumn Header="{x:Static res:Resources.Classroom}" Binding="{Binding Classroom}"/&gt;
              &lt;/dxg:GridControl.Columns&gt;
              &lt;dxg:GridControl.View&gt;
                  &lt;dxg:TableView AllowEditing="False" AutoWidth="True" ShowGroupPanel="False"&gt;
                  &lt;/dxg:TableView&gt;
              &lt;/dxg:GridControl.View&gt;
          &lt;/dxg:GridControl&gt;
      &lt;/Grid&gt;
  &lt;/Border&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want to be able to set ItemSource for this GridControl in my Window's xaml. I know that I have to use DataContext property to do this, but I'm not aware of how to use it properly. So, what is the best way to solve this issue?</p>