3
votes

I am working on Windows Phone development. For that I installed required SDK. I do create new project with Windows Phone 8.1, but gradually found that it don't support WCF service as we can not add service reference in assembly. After research I found that Windows Phone 8.1 doesn't support WCF services(refernce). Then I add new Silverlight Windows Phone 8.1 project and found that it support web service(Work Around). While development in Silverlight project I found that their is another difference between two type of project in syntax also, e.g. Navigation to another page,

Windows Phone 8.1 Silverlight support following syntax:

NavigationService.Navigate(new Uri(@"/SecondPage.xaml", UriKind.Relative));

where as Windows Phone 8.1 support(reference)

Frame.Navigate(typeof(SecondPage));

Now I am getting confuse with those type of project and unable to find those differences. Please help me out.

1
Here you have a MSDN link to both API's. Also this answer may help little.Romasz

1 Answers

1
votes
  • Silverlight navigates between pages using Uri that point to xaml files.
  • Windows Phone Runtime (8.1 Store Apps) uses navigation with pagetypes.

If your app is a Windows Phone Silverlight (8 or 8.1) App, you have to use the first approach for navigating between pages. The other one simply isn't available to your project.

Windows Phone currently has multiple different application models available, which differ significantly. I know that can be quite confusing When looking for samples and guidance make sure the article you found is matching your app type (i.e. Silverlight).