Windows Phone Silverlight 8.1和Windows Phone 8.1开发之间的区别 [英] Difference between Windows Phone Silverlight 8.1 and Windows Phone 8.1 development

查看:75
本文介绍了Windows Phone Silverlight 8.1和Windows Phone 8.1开发之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事Windows Phone开发.为此,我安装了必需的SDK.我确实使用Windows Phone 8.1创建了新项目,但是逐渐发现它不支持WCF服务,因为我们无法在程序集中添加服务引用.经过研究后,我发现Windows Phone 8.1不支持WCF服务(

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支持以下语法:

Windows Phone 8.1 Silverlight support following syntax:

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

Windows Phone 8.1支持的地方(参考)

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.

推荐答案

  • Silverlight使用指向xaml的Uri在页面之间导航文件.
  • Windows Phone运行时(8.1 Store Apps)将导航与页面类型.
  • 如果您的应用程序是Windows Phone Silverlight(8或8.1)应用程序,则必须使用第一种方法在页面之间导航.另一个项目根本无法用于您的项目.

    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当前具有多种可用的应用程序模型,这些模型存在很大差异.我知道这很令人困惑,在查找示例和指南时,请确保您找到的文章与您的应用类型匹配(即Silverlight).

    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).

    这篇关于Windows Phone Silverlight 8.1和Windows Phone 8.1开发之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆