title: How to do relativesource mode find ancestor (or equivalent) in UWP
body: <p>I am trying to do something that one would think should be very simple (at least it is in WPF). 
  I have a page with a listbox and a datatemplate, now that datatemplate calls a user control with a button in it. Nothing fancy, but the buttons command is not part of the listboxsource, and I can’t find a simple way to tell the button where to look for the command. Here is the scenario</p>
  
  <pre><code>&lt;Page x:Class="App1.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App1"&gt;
  &lt;Page.Resources&gt;
      &lt;DataTemplate x:Key="MyDataTemplate"&gt;
          &lt;local:MyButton /&gt;
      &lt;/DataTemplate&gt;
  &lt;/Page.Resources&gt;
  &lt;ListBox ItemTemplate="{StaticResource MyDataTemplate}" ItemsSource="{Binding Customers}" /&gt;
  &lt;/Page&gt;
  
  &lt;UserControl x:Class="App1.MyButton"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt;
  
  &lt;Button Command="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl, AncestorLevel=2}, Path=DataContext.DeleteCommand}" Content="Delete" /&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>Please note this does not compile as in UWP there is no mode find ancestor? How should I do it, I keep looking at google but can’t find anything about it.</p>
  
  <p>Thank you</p>