Answered by:
UnivApp W10 OnNavigatedTo no suitable method found to override

Question
-
Trying to add background task to W10 UnivApp from App Studio to update Live Tile from RSS feed from the background task. I get the 'no suitable method found to override for the OnNavigatedTo
protected override void OnNavigatedTo(NavigationEventArgs e)
{
RegisterBackgroundTask();
}I'm using the quickstart from MSDN to add this. Is this not supported in W10?
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj991805.aspx?f=255&MSPPError=-2147217396
Sunday, September 6, 2015 10:14 AM
Answers
-
Hi,
Closing this due to no response from the user.
Thanks.
- Marked as answer by Windows App Studio Support TeamModerator Monday, February 22, 2016 8:37 PM
Monday, February 22, 2016 8:37 PMModerator
All replies
-
Hi Tony,
Apologies for the delayed response. Can you please tell us your app name for us to look into the issue?
Thanks.
Tuesday, October 20, 2015 9:39 PMModerator -
Hi Tony,
We need more data to look into this issue further.
Can you please let us know which class you are overwritting OnNavigatedTo?
The OnNavigatedTo can only be overwritten in Page classes.
Thanks.
Monday, November 9, 2015 7:12 PMModerator -
Hi,
Closing this due to no response from the user.
Thanks.
- Marked as answer by Windows App Studio Support TeamModerator Monday, February 22, 2016 8:37 PM
Monday, February 22, 2016 8:37 PMModerator -
I was hitting this same issue and eventually figured out my file was missing the "using Windows.UI.Xaml.Navigation;" statement. Adding that to the top of the file fixed it for me.
- Proposed as answer by JeremyCahill Tuesday, October 3, 2017 10:23 PM
Tuesday, October 3, 2017 10:23 PM