title: UWP DataContext from DataTempalte to UserControl in DataTemplate
body: <p>I want to share a ListViewItem from DataTemplate to a UserControl in DataTemplate using DataContext, i just spend two hours on this task, looked many sites, but dont find a requested answer, because everytime i want to get DataContext, it is null.</p>
  
  <p>Short code, what i want to do:</p>
  
  <p>In Page.xaml</p>
  
  <pre><code>&lt;ListView Name="MainWindowLinesInfoListView1" IsItemClickEnabled="True" ItemClick="MainWindowLinesInfoListView1_ItemClick" Grid.Row="1" ItemsSource="{x:Bind pk1}" SelectionMode="Single"&gt;
         &lt;ListView.ItemTemplate&gt;
              &lt;DataTemplate x:DataType="data:Przystanki"&gt;
                  &lt;local:MainWindowLinesInfoFirst DataContext="{x:Bind self}" /&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>in UserControl called: MainWindowLinesInfoFirst </p>
  
  <pre><code>&lt;Grid Margin="2" HorizontalAlignment="Center"&gt;
      &lt;TextBlock x:Name="MainWindowLinesInfoListView1TextBlock" Foreground="Navy" HorizontalAlignment="Center" TextWrapping="Wrap" /&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>and in .cs of this UserControl:</p>
  
  <pre><code>public MainWindowLinesInfoFirst()
  {
      this.InitializeComponent();
      var a = this.DataContext as Przystanki;
  }
  </code></pre>
  
  <p>and here is a simple class:</p>
  
  <pre><code>public class Przystanki
  {
      public Przystanki self { get { return this; } }
      public string name { get; set; }
  }
  </code></pre>
  
  <p>The problem is, that always when a this UserControl is called, a DataContext is not a "Przystanki" bot null.</p>
  
  <p>Question is: How to send a DataContext to this UserControl?</p>