title: In a WPF custom control, is it possible for a child element to Template bind to the event of the control?
body: <p>I have a custom control that contains two elements that can be clicked (a button and a check box). I'd like to be able to put events in the XAML for each of these events. </p>
  
  <p>i.e.    </p>
  
  <pre><code>&lt;Control OnButtonClick="SomeEvent"  OnCheckBoxClick="SomeOtherEvent" /&gt;
  </code></pre>
  
  <p>I have no idea how to bind events like that.  Any pointers?</p>
  
  <p>The following is the content of the user control:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type local:DeleteCheckBox}"&gt;
      &lt;Setter Property="Template"&gt;
      &lt;Setter.Value&gt;
          &lt;ControlTemplate TargetType="{x:Type local:DeleteCheckBox}"&gt;
              &lt;Grid&gt;
                  &lt;Label Height="25" BorderBrush="LightGray" BorderThickness="1" Padding="0" DockPanel.Dock="Top" FlowDirection="RightToLeft" Visibility="Hidden"&gt;
                      &lt;Button x:Name="ImageButton1" Background="Transparent" Padding="0" BorderBrush="Transparent" Height="11" Width="11" Click="--Bind Function Here--" /&gt;
                  &lt;/Label&gt;
                  &lt;CheckBox Content="A0000" Click="--Bind Function Here--" IsChecked="True" Margin="0,10,10,0" VerticalContentAlignment="Center"/&gt;
              &lt;/Grid&gt;
          &lt;/ControlTemplate&gt;
      &lt;/Setter.Value&gt;
    &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>