title: Take element's parent name, a few levels above
body: <p>I have many TabItems in my MainWindow.xaml.cs
  They are all with the same structures. This is one of them.</p>
  
  <pre><code>&lt;TabItem Name="tabFeatured" Header="Featured" DataContext="{Binding TemplatesFeatured}"&gt;
              &lt;ScrollViewer&gt;
                  &lt;ItemsControl Name="ItemsControlFeatured" ItemsSource="{Binding}" &gt;
                      &lt;ItemsControl.ItemsPanel&gt;
                          &lt;ItemsPanelTemplate&gt;
                              &lt;WrapPanel/&gt;
                          &lt;/ItemsPanelTemplate&gt;
                      &lt;/ItemsControl.ItemsPanel&gt;
                      &lt;ItemsControl.ItemTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;Button 
                                  Name="Featured"
                                  Tag="{Binding Id}"
                                  Click="Button_Download_Click"&gt;
                              &lt;/Button&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/ItemsControl.ItemTemplate&gt;
                  &lt;/ItemsControl&gt;
              &lt;/ScrollViewer&gt;
          &lt;/TabItem&gt;
  </code></pre>
  
  <p>and this is from c#</p>
  
  <pre><code>private void Button_Download_Click(object sender, RoutedEventArgs e)
  {
      Button b = (Button)sender;
  
      string buttonTag = b.Tag.ToString();
      string categoryName = b.Name.ToLower();
  }
  </code></pre>
  
  <p>How can I take the TabItem's Name of the clicked button, so I can use its DataContext. </p>
  
  <p>Every tabitem has different Context and I want to get it, depends on the button's Name.</p>