title: WPF UserControl Child Component Event Handler
body: <p>I have a UserControl that contain let's say a button (or any other object).</p>
  
  <pre><code>&lt;UserControl x:Class="StackOverFlowQuestion.UserControlButton"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
               xmlns:local="clr-namespace:StackOverFlowQuestion"
               mc:Ignorable="d"
               d:DesignHeight="300" d:DesignWidth="300"&gt;
      &lt;Grid&gt;
          &lt;Button
              x:Name="Button1"
              Content="Click me for testing"/&gt;
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>and I want to access that Button's(Or any Object) Click Event or any Event form the parent that contains the UserControl.</p>
  
  <pre><code>&lt;Window x:Class="StackOverFlowQuestion.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          xmlns:local="clr-namespace:StackOverFlowQuestion"
          mc:Ignorable="d"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;Grid&gt;
          &lt;local:UserControlButton/&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Thanks.</p>