Bug in the build?

Asked

Viewed 664 times

1

What a mistake 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 (are you Missing a using Directive or an Assembly Reference?) Alert C: Users new Documents visual studio 2015 Projects Alert Blankpage1.xaml 16 Active


C: Users new Documents visual studio 2015 Projects Alerta 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 using Directive or an Assembly Reference?)

  • double click on the error .. and go to the line that this red underline and remove it...

  • You must have deleted the event SelectionChanged of listView, correct?

1 answer

1


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

Two solutions:

1)Remove reference

Go on the BlankPage1 and look for the listview which is on line 16 and removes the event reference SelectionChanged.

2)Add reference to

Go to Blankpage1.xaml.Cs file and add the following method:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.