title: C# Xamarin OnClick function
body: <p>What I'm doing is this </p>
  
  <pre><code>Button button1 = FindViewById&lt;Button&gt;(Resource.Id.button1);
  
  button1.SetOnClickListener(new View.OnClickListener()
      {
          public void onClick(View v)
          {
              // Perform action on click
          }
      });
  </code></pre>
  
  <p>but for some reasons I'm getting <code>OnClickListener</code> underlined with red. and I can't do anything to launch a function when I click my button .</p>