Reputation: 5858
on a MainPage, I have a button which could take me to another page.
private void button_clicked(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
if (this.Frame != null)
{
this.Frame.Navigate(typeof(AnotherPage));
}
}
However, it gives me this error:
Error 1 'test.CreateAccountPage' does not contain a definition for 'button_createAccount_clicked' and no extension method 'button_createAccount_clicked' accepting a first argument of type 'test.CreateAccountPage' could be found (are you missing a using directive or an assembly reference?) C:\Users\Anggrian\Documents\Visual Studio 2012\Projects\test\test\CreateAccountPage.xaml 55 98
I swear to God it worked yesterday, now I am clueless
Upvotes: 0
Views: 283
Reputation: 6007
Try going to line 55 in C:\Users\Anggrian\Documents\Visual Studio 2012\Projects\test\test\CreateAccountPage.xaml and replace button_createAccount_clicked
with button_clicked
Upvotes: 1