title: Add external event handler to WPF component in C#/ Xaml?
body: <p>Assume we have a button declared in XML :</p>
  
  <pre><code>&lt;button x:Class="A" Content="click me" Name="button" /&gt;
  </code></pre>
  
  <p>And in the accompanying class A we have</p>
  
  <pre><code>public partial class A {
     BHandler b = new BHandler();
  }
  </code></pre>
  
  <p>and the class BHandler consits of:</p>
  
  <pre><code>public class BHandler {
     clickHandler(object sender, RoutedEventArgs){
        Console.WriteLine("button clicked!");
     }
  }
  </code></pre>
  
  <p>My question is: Is it possible to register the event handler in b directly to the button, by something like:</p>
  
  <pre><code>Click="b.clickHandler"
  </code></pre>
  
  <p>rather than having the event handler in the partial C# class that accompanies the AXML?</p>