title: How to get a Command from a DataContext in a ItemTemplate UWP
body: <p>I have next part of XAML-code</p>
  
  <pre><code>&lt;ListView x:Name="FavoritesList" Grid.Row="0" Grid.ColumnSpan="3" Grid.RowSpan="1" Grid.Column="0" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch" VerticalAlignment="Top" ItemsSource="{Binding Favorites.FavoritesVideos, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" &gt;
          &lt;ListView.ItemTemplate&gt;
              &lt;DataTemplate x:DataType="local:FavoriteItem"&gt;
                  &lt;StackPanel Margin="10" Orientation="Horizontal"&gt;
                      &lt;Button Content="&amp;#59240;" Command="{Binding ElementName=listBox, Path=DataContext.ToPlayer}" CommandParameter="{Binding ElementName=Source, Path=Text}" FontFamily="Segoe MDL2 Assets" Background="Transparent" HorizontalAlignment="Right"/&gt;
                      &lt;TextBlock x:Name="Source" FontSize="18" Text="{Binding Path}" HorizontalAlignment="Right" VerticalAlignment="Center"/&gt;
                      &lt;TextBlock FontSize="23" Text="{Binding Name}" Foreground="#FFFF2F00" HorizontalAlignment="Right" VerticalAlignment="Center"/&gt;
                  &lt;/StackPanel&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>As you can see, I need to bind a command to button from my <code>DataContext</code> inside of <code>ItemTemplate</code>, but I have no idea how to do it.</p>