title: How to trigger button click event on pressing enter button in c#
body: <p>I am creating a login form in windows phone app , I want to trigger login button event on pressing enter button from finishing the form.</p>
  
  <p><strong>Requirement:</strong> While clicking enter button from last text field in login page should trigger login button event..</p>
  
  <p><strong>Code sample</strong>
    I know how to move from one text field to another on clicking enter button as below</p>
  
  <pre><code>private void passkeydown(object sender, KeyEventArgs e)
  {
    if (e.Key == Key.Enter)
   {
    nextfield .Focus();
    }
   }
  </code></pre>
  
  <p>But I don't know how to trigger button click event here.</p>