title: How to add a click handler to a WPF Button in C++/CLR?
body: <p>In C#, I can do (*):</p>
  
  <pre><code>        Button b = new Button();
          b.Click += ButtonOnClick;
      :
      void ButtonOnClick(object sender, RoutedEventArgs e)
      {
          // do something
      }
  </code></pre>
  
  <p>But in C++/CLI I can't do:</p>
  
  <pre><code>    Button ^ b = gcnew Button();
      b-&gt;Click += ButtonOnClick;
  :
  void ButtonOnClick(Object ^ sender, RoutedEventArgs ^ e)
  {
      // do something
  }
  </code></pre>
  
  <p>I get a compiler error complaing about the += ButtonOnClick:
  2>.\blub.cpp(108) : error C3867: 'MyListBoxItem::ButtonOnClick': function call missing argument list; use '&amp;MyListBoxItem::ButtonOnClick' to create a pointer to member</p>
  
  <p>(The tip the compiler gives me doesn't work because it isn't a static method.)</p>
  
  <p>What is the equivalent of (*) in C++/CLI ?</p>
  
  <p>Thx
     Marc</p>