2017 年 8 月 Windows 开发人员文档中的新增功能What's New in the Windows Developer Docs in August 2017

Windows 开发人员文档持续更新对整个 Windows 平台的开发人员提供的新功能的信息。The Windows Developer Documentation is constantly being updated with information on new features available to developers across the Windows platform. 最近提供了以下功能概述、开发人员指南和视频,包含面向 Windows 开发人员的新的和更新的信息。The following feature overviews, developer guidance, and videos have recently been made available, containing new and updated information for Windows developers.

只需在 Windows 10 上安装工具和 SDK,你便可以随时创建新的通用 Windows 应用,或了解如何使用 Windows 上的现有应用代码Install the tools and SDK on Windows 10 and you’re ready to either create a new Universal Windows app or explore how you can use your existing app code on Windows.

功能Features

Windows Template StudioWindows Template Studio

使用适用于 Visual Studio 2019 的新 Windows Template Studio 扩展快速生成具有所需页面、框架和功能的 UWP 应用。Use the new Windows Template Studio extension for Visual Studio 2019 to quickly build a UWP app with the pages, framework, and features that you want. 此基于向导的体验实现成熟的模式和最佳做法,以便为你节省时间和更加轻松地在你的应用中添加功能。This wizard-based experience implements proven patterns and best practices to save you time and trouble adding features to your app.

Windows Template Studio

条件 XAMLConditional XAML

现在可以预览条件 XAML 以创建版本自适应应用You can now preview conditional XAML to create version adaptive apps. 使用条件 XAML,可以在 XAML 标记中使用 ApiInformation.IsApiContractPresent 方法,这样就可以基于是否存在 API 在标记中设置属性并例示对象,而无需在之后使用代码。Conditional XAML lets you use the ApiInformation.IsApiContractPresent method in XAML markup, so you can set properties and instantiate objects in markup based on the presence of an API, without needing to use code behind.

游戏模式Game Mode

适用于通用 Windows 平台 (UWP) 的游戏模式 API 让你可以利用 Windows 10 中的游戏模式产生最优化的游戏体验。The Game Mode APIs for the Universal Windows Platform (UWP) allow you to produce the most optimized gaming experience by taking advantage of Game Mode in Windows 10. 这些 API 位于 <expandedresources.h> 标头中。These APIs are located in the <expandedresources.h> header.

游戏模式

提交 API 支持视频预告片和游戏选项Submission API supports video trailers and gaming options

Microsoft Store 提交 API 现在可以让你在应用提交中包括视频预告片游戏选项The Microsoft Store submission API now enables you to include video trailers and gaming options with your app submissions.

开发人员指南Developer Guidance

Microsoft Store 产品的数据架构Data schemas for Store products

我们添加了 Store 产品的数据架构文章。We've added the Data schemas for Store products article. 此文章提供了对 Windows.Services.Store 命名空间中的多个对象可用的与 Store 相关的数据的架构,包括 StoreProductStoreAppLicenseThis article provides schemas for the Store-related data available for several objects in the Windows.Services.Store namespace, including StoreProduct and StoreAppLicense.

桌面桥Desktop Bridge

我们添加了两个指南帮助你添加让 Windows 10 用户感到喜悦的现代化体验。We've added two guides that help you to add modern experiences that light up for Windows 10 users.

请参阅增强用于 Windows 10 的桌面应用程序查找和引用正确的文件,然后编写能够增强 Windows 10 用户 UWP 体验的代码。See Enhance your desktop application for Windows 10 to find and reference the correct files, and then write code to light up UWP experiences for Windows 10 users.

请参阅使用现代 UWP 组件扩展桌面应用程序,以整合必须在 UWP 应用容器中运行的现代 XAML UI 以及其他的 UWP 体验。See Extend your desktop application with modern UWP components to incorporate modern XAML UIs and other UWP experiences that must run in a UWP app container.

服务点入门Getting started with point of service

我们添加了帮助你了解服务点设备的新指南。We've added a new guide to help you get started with point of service devices. 它涵盖的主题包括设备枚举、检查设备功能、声明设备和设备共享等。It covers topics like device enumeration, checking device capabilities, claiming devices, and device sharing.

Xbox LiveXbox Live

我们添加了面向 Xbox Live 开发人员、适用于 UWP 和 Xbox 开发人员工具包 (XDK) 游戏的文档。We've added docs for Xbox Live developers, for both UWP and Xbox Developer Kit (XDK) games.

请参阅 Xbox Live 开发人员指南了解如何使用 Xbox Live API 将游戏连接到 Xbox Live 社交游戏网络。See the Xbox Live developer guide to learn how to use the Xbox Live APIs to connect your game to the Xbox Live social gaming network.

借助 Xbox Live 创意者计划,任何 UWP 游戏开发人员都可以在电脑和 Xbox One 上开发和发布支持 Xbox Live 的游戏。With the Xbox Live Creators Program, any UWP game developer can develop and publish an Xbox Live-enabled game on both the PC and Xbox One.

请参阅 Xbox Live 开发人员计划概述,获取有关 Xbox Live 开发人员可用程序和功能的信息。See the Xbox Live developer program overview for information about the programs and features available to Xbox Live developers.

视频Videos

混合现实Mixed Reality

发布了适用于 Microsoft HoloLens 课程 250 的一系列新的教程视频。A series of new tutorial videos have been released for Microsoft HoloLens Course 250. 如果你已安装工具并熟悉开发混合现实的基础知识,请查看这些视频课程以获取关于跨混合现实设备创建共享体验的信息。If you've already installed the tools and are famiilar with the basics of development for Mixed Reality, check out these video courses for information upon creating shared experiences across Mixed Reality devices.

讲述人和开发人员模式Narrator and Dev Mode

你可能已知道可以使用讲述人测试应用的屏幕阅读体验。You might already know that you can use Narrator to test the screen reading experience of your app. 但“讲述人”还提供开发人员模式,以显示对其公开的信息的良好的视觉表示形式。But Narrator also features a developer mode, which gives you a good visual representation of the information exposed to it. 观看视频,然后详细了解讲述人开发人员模式Watch the video, then learn more about Narrator developer mode.

Windows Template StudioWindows Template Studio

此视频提供了关于 Windows Template Studio 的更详细概述。A more detailed overview of the Windows Template Studio is given in this video. 准备就绪后,请安装扩展查看源代码和文档When you're ready, install the extension or check out the source code and documentation.