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

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

问题描述

我正在从事 Windows Phone 开发.为此,我安装了所需的 SDK.我确实用 Windows Phone 8.1 创建了新项目,但逐渐发现它不支持 WCF 服务,因为我们无法在程序集中添加服务引用.经过研究,我发现 Windows Phone 8.1 不支持 WCF 服务(reference).然后我添加了新的 Silverlight Windows Phone 8.1 项目,发现它支持 web 服务(解决).在 Silverlight 项目中进行开发时,我发现它们也是两种类型项目在语法上的另一个区别,例如导航到另一个页面,

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 Runtime(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天全站免登陆