title: Unfounded compilation error in VisualStudio 2012
body: <p>Visual Studio's C# compiler propmts an error that has no base:
  "No overload for 'ItemSelection' matches delegate 'OnItemSelected' in MainPage.xaml"
  (Or I am blind and can't see the error) Earlier project could be compiled, despite the fact that the error appeared, but now it doesn't (What is strange).
  Thank You for your help.
  <code></p>
  
  <pre><code>//MainPage.xaml
  &lt;ListBox.ItemTemplate&gt;
      &lt;DataTemplate&gt;
          &lt;local:WordBlock   Word="{Binding}" OnSlideOccured="OnSlide"  OnItemSelection="ItemSelection"/&gt;
      &lt;/DataTemplate&gt;
  &lt;/ListBox.ItemTemplate&gt;
  //MainPage.xaml.cs
  private void ItemSelection(string word)
  {
      ToSearch = word;
      (Panorama.Items[0] as PanoramaItem).Visibility = Visibility.Collapsed;
      Panorama.SetValue(Panorama.SelectedItemProperty, Panorama.Items[0]);
      Panorama.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
      (Panorama.Items[0] as PanoramaItem).Visibility = Visibility.Visible;
  }
  //WordBlock.xaml.cs
  public delegate void OnItemSelected(string word);
  public event OnItemSelected OnItemSelection;
  </code></pre>
  
  <p></code></p>