title: WPF data picker Selected date changed event handler
body: <p>I am trying to add an event handler to a date picker control programmatically during the window load process, but it is  giving me an error message:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type
    'System.Windows.Controls.SelectionChangedEventHandler' to
    'System.EventHandler'</p>
  </blockquote>
  
  <p>The code:</p>
  
  <pre><code>private void Window_Loaded(object sender, RoutedEventArgs e)
          {
              LoadCombo();
              dpFrom.SelectedDateChanged += new SelectionChangedEventHandler(this.dp_SelectedDateChanged);
  
          }
  
  private void dp_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
  {
     // reset label;                    
  }
  </code></pre>