title: Calling button click from another button click
body: <p>How to press RoutedEventArgs e button (button in page) from EventArgs e button (button on application bar) in windows phone 7</p>
  
  <pre><code>    private void button3_Click(object sender, EventArgs e)
      {
          button0_Click(sender, e);
      }
  
      private void button0_Click(object sender, RoutedEventArgs e)
      {
  
      }
  </code></pre>
  
  <p>when i am using above code its giving me </p>
  
  <p>cannot convert from 'System.EventArgs' to 'System.Windows.RoutedEventArgs'</p>
  
  <p>Please Help</p>
  
  <p>SMS CODE:</p>
  
  <pre><code>    SmsComposeTask SCT = new SmsComposeTask();
  
      PhoneApplicationService PAS = PhoneApplicationService.Current;
  
      public string SMSNO;
  
      protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
      {
          object sample;
          if (PAS.State.TryGetValue("numbertext", out sample))
              SMSNO = sample as string;
          if (PAS.State.TryGetValue("messagetext", out sample))
              txtOutput.Text = sample as string;
          base.OnNavigatedTo(e);
      }
  
      private void button2_Click(object sender, RoutedEventArgs e)
      {
          if (txtOutput.Text != "")
          {
              SCT.To = SMSNO;
              SCT.Body = txtOutput.Text;
              SCT.Show();
          }
          else
          {
              MessageBox.Show("Output is Empty to send SMS.", "Wait!", MessageBoxButton.OK);
          }
      }
  
      protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
      {
          PAS.State["numbertext"] = SMSNO;
          PAS.State["messagetext"] = txtOutput.Text;
          base.OnNavigatedFrom(e);
      }
  </code></pre>