Compile error?

1

What error is this when I compile my application?

  

Severity Code Description Project File Line Suppression State   Error CS1061 'BlankPage1' does not contain a definition for 'listView_SelectionChanged' and no extension method 'listView_SelectionChanged' accepting a first argument of type 'BlankPage1' could be found Warning C: Users \ new \ documents \ visual studio 2015 \ Projects \ Alert \ Alert \ BlankPage1.xaml 16 Active

  C: \ Users \ new \ documents \ visual studio 2015 \ Projects \ Alert \ Alert \ BlankPage1.xaml (16,105,16,130): error CS1061: 'BlankPage1' does not contain a definition for 'listView_SelectionChanged' and no extension method 'listView_SelectionChanged' accepting a first argument of type 'BlankPage1' could be found (are you missing a directive or an assembly reference?)

    
asked by anonymous 30.03.2017 / 23:19

1 answer

1

As already mentioned in the comments, you probably removed the private void listView_SelectionChanged(object sender, SelectionChangedEventArgs e)

Two solutions:

1) Remove reference

Go to BlankPage1 and look for the listview that is on line 16 and remove the reference from the SelectionChanged event.

2) Add reference

Go to the BlankPage1.xaml.cs file and add the following method:

private void listView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
    //TODO:Adicione o seu código aqui
}
    
31.03.2017 / 02:12