title: Event Handler Null
body: <p>In the <code>MainWindow</code> constructor, I am registering an event handler:</p>
  
  <pre><code>public partial class MainWindow : Window, INotifyPropertyChanged
  {
      public MainWindow()
      {
          InitializeComponent();
          pageViewDocText = new PageViewDocText();
          framePageDocFieldDetail.Content = pageViewDocText;
          pageViewDocText.NewPageIRPRO += new GabeLib.SearchCls.DocEventHandler(ViewIPRO);
      }
  
      protected void ViewIPRO(string IRPOlink) // ...
  }
  
  public partial class PageViewDocText : Page, INotifyPropertyChanged
  {
      public event GabeLib.SearchCls.DocEventHandler NewPageIRPRO;
  
      private void btn_PageBreakNext(object sender, RoutedEventArgs e)
      {
          // this fires but NewPageIRPRO is null
          if (NewPageIRPRO != null)
          {
              NewPageIRPRO("dummylink");
          }
      }
  }
  </code></pre>
  
  <p>But in <code>PageViewDocText</code>, <code>NewPageIRPRO</code> is null  </p>
  
  <p>What am I doing wrong?<br>
  From <code>PageViewDocText</code>, I want to call <code>MainWindow.ViewIPRO</code>.</p>
  
  <p>This event handler fires and is registered the line below pageViewDocText.NewPageIRPRO +=</p>
  
  <pre><code>App.StaticGabeLib.Search.NewDocIRPRO += new GabeLib.SearchCls.DocEventHandler(ViewIPRO);
  </code></pre>