I work on Windows Phone 8 app. Some methods of ObservableCollection and List are unavailable at several pages (not at all pages). Such methods as OrderBy and ElementAt. So, I can't sort my items in these collections because of it. How to find the reason of it? I have no idea.
Those aren't methods on ObservableCollection
or List
themselves. They're extension methods provided by the System.Linq.Enumerable
class.
You probably just need an added using
directive in your source code to make them available:
using System.Linq;
If that triggers another error saying that the namespace System.Linq
isn't found, you'll need to add a reference to the System.Core
assembly.
See more on this question at Stackoverflow