title: How can I pass addition local object variable to my event handler?
body: <p>I want to a pass local object to the event handler. How can I do that? For example, how can I reference the "graphic" object, which is declared in the main function below, in the event handler function "hyperlinkButton_Click"?</p>
  
  <pre><code>    void main()
      {
          Graphic graphic = new Graphic();
  
          hyperlinkButton.Click+=new RoutedEventHandler(hyperlinkButton_Click);
      }
  
      void hyperlinkButton_Click(object sender, EventArgs e)
      {
  
      }
  </code></pre>