3

I am trying to get the last page in the navigation using the following in WP8

var lastPage = NavigationService.BackStack.FirstOrDefault();

However Visual Studio 12 complaints that it does not contain a definition for FirstOrDefault

PutraKg
  • 2,226
  • 3
  • 31
  • 60

1 Answers1

6

Don't forget to add using System.Linq; at the top of your code file.

Kevin Gosse
  • 38,392
  • 3
  • 78
  • 94