Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
421 views
in Technique[技术] by (71.8m points)

c# - Difference between Windows Phone Silverlight 8.1 and Windows Phone 8.1 development

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
  • 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).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...