问题描述
我一直在关注在Visual Studio 2013上使用我的应用程序使用Cortana语音命令的快速入门指南,一切都很好,除非我试图覆盖OnActivated事件 并建立解决方案,它说
I have been following a quickStart guide on using Cortana voice Commands with my app on visual studio 2013, everything whent fine except when I tried to override the OnActivated event and build the solution it says
错误 1 'App1.MainPage.OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs)'是密封类中的新虚拟成员' App1.MainPage' C:\ Users \ Roger \Documents \ Visual Studio 2013 \Projects\App1 \ App1 \ App1.WindowsPhone \ MainPage.xaml.cs 60 33 App1。 Windows
手机
Error 1 'App1.MainPage.OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs)' is a new virtual member in sealed class 'App1.MainPage' C:\Users\Roger\Documents\Visual Studio 2013\Projects\App1\App1\App1.WindowsPhone\MainPage.xaml.cs 60 33 App1.Windows Phone
和
错误 2 'App1.MainPage.OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs)':找不到合适的方法来覆盖 C:\ Users \ Roger \ Files \ Visis Studio 2013 \Projects \ App1 \ App1 \ App1.WindowsPhone \ MainPage.xaml.cs 60 33 App1 .WindowsPhone
Error 2 'App1.MainPage.OnActivated(Windows.ApplicationModel.Activation.IActivatedEventArgs)': no suitable method found to override C:\Users\Roger\Documents\Visual Studio 2013\Projects\App1\App1\App1.WindowsPhone\MainPage.xaml.cs 60 33 App1.WindowsPhone
谢谢
Roger Rios
Roger Rios
推荐答案
这篇关于对于Cortana语音命令,无法覆盖OnActivated的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!