Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/293.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Windows 8 metro-在C中的页面之间导航时出错#_C#_Windows_Button_Microsoft Metro - Fatal编程技术网

C# Windows 8 metro-在C中的页面之间导航时出错#

C# Windows 8 metro-在C中的页面之间导航时出错#,c#,windows,button,microsoft-metro,C#,Windows,Button,Microsoft Metro,在主页上,我有一个按钮,可以把我带到另一个页面 private void button_clicked(object sender, Windows.UI.Xaml.RoutedEventArgs e) { if (this.Frame != null) { this.Frame.Navigate(typeof(AnotherPage)); } } 但是,它给了我这个错误: 错误1“test.CreateAccountPage”不包含“butt

在主页上,我有一个按钮,可以把我带到另一个页面

private void button_clicked(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
     if (this.Frame != null)
     {
          this.Frame.Navigate(typeof(AnotherPage));
     }
}
但是,它给了我这个错误:

错误1“test.CreateAccountPage”不包含“button\u createAccount\u clicked”的定义,并且找不到接受“test.CreateAccountPage”类型的第一个参数的扩展方法“button\u createAccount\u clicked”(是否缺少using指令或程序集引用?)C:\Users\Anggrian\Documents\Visual Studio 2012\Projects\test\test\CreateAccountPage.xaml 55 98


我向上帝发誓它昨天起作用了,现在我不知所措了

试着转到C:\Users\Anggrian\Documents\visualstudio 2012\Projects\test\test\CreateAccountPage.xaml中的第55行,并用
button\u createAccount\u clicked
替换
button\u createAccount\u clicked
,然后使用重构控件将其更改为您想要的状态。否则,请查看XAML并将单击的
按钮替换为单击的
按钮。