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并将单击的按钮替换为单击的按钮。