title: How to get the parent from the click event of button in the control template?
body: <p>Usercontrol has the below control template</p>
  
  <pre><code>&lt;ControlTemplate x:Key="MarkerTemplate"  &gt;
          &lt;ToggleButton x:Name="btnMarkerPin" Click="btnMarkerPin_Click" &gt;
              &lt;ToggleButton.Template&gt;
                  &lt;ControlTemplate&gt;
                      &lt;Grid&gt;
                          &lt;Ellipse Fill="Green" Width="25" Height="25" VerticalAlignment="Center" HorizontalAlignment="Center" ToolTip="{Binding}" /&gt;
          &lt;/Grid&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/ToggleButton.Template&gt;               
          &lt;/ToggleButton&gt;
  </code></pre>
  
  <p></p>
  
  <p>By btnMarkerPin_Click event i can get the togglebutton object as sender , but requirement is to get the parent object to which this template is applied.</p>