http://pan.baidu.com/s/1hqyusja?qq-pf-to=pcqq.c2c#dir/path=%2FWPSDK%208.1%20DevPreview%20Installer
wp8.1 sdk preview

赶紧的吧!

 

Breaking changes for Windows Phone (code-named “Blue”)

[This documentation is preliminary and is subject to change.]

This document lists breaking changes introduced for Windows Phone (code-named “Blue”). We've made significant changes and optimizations to improve apps in Windows Phone (code-named “Blue”). Many optimizations don’t require you to change your code, but some improvements do require changes.

Functional changes

Pivot

The Pivot control has been rewritten, and these changes affect event timing and performance. All Pivot control template parts have been renamed or replaced. Windows XAML app code that depends on the timing of Pivot may no longer work correctly. Apps that have dependencies on the Pivot control template must be updated. Change any app code that depends on Pivot timing, and update any code that has dependencies on the Pivot control template.

Background tasks

Apps must programmatically request access to run in the background. If your app registers for one or more of the following triggers, it must call RequestAccessAsync:

SystemTriggerType.NetworkStateChange

SystemTriggerType.InternetAvailable

SystemTriggerType.ServicingComplete

SystemTriggerType.TimeZoneChange

SystemTriggerType.UserPresent

SystemTriggerType.SessionConnected

SystemTriggerType.NetworkOperatorHotspotAuthenticationTrigger

SystemTriggerType.NetworkOperatorNotificationTrigger

DeviceTriggerType.DeviceServicing

DeviceTriggerType.DeviceUse

SystemTriggerType.CachedFileUpdated

SmartCardTrigger

These triggers will not fire if your app has not previously called RequestAccessAsync. This change allows users (through Battery Sense) to explicitly control which apps can run in the background.

The following example illustrates how to call RequestAccessAsync:

BackgroundAccessStatus status = await BackgroundExecutionManager.RequestAccessAsync();

You can call RequestAccessAsync on startup from the UI thread of your app. For more information, see BackgroundExecutionManager in the API documentation.

Background audio

Background audio in Windows Runtime XAML now uses the IBackgroundTask interface as an entry point. You can define your own implementation of the IBackgroundTask interface or use the default provided PhoneInternal.Media.BackgroundPlayback.DefaultBackgroundTask. The ActivateBackgroundObject API is deprecated, so apps that use this API must implement an entry point and IBackgroundTask to avoid throwing exceptions:

  1. Add the entry point in the AppX manifest.
  2. Implement the IBackgroundTask interface or use the default PhoneInternal.Media.Background.Playback.DefaultBackgroundTask.

ContentDialog

Windows Runtime XAML ContentDialog PrimaryButtonClick and SecondaryButtonClick events now have associated event handlers. If you are using these events, your app will no longer build. You can update your code to handle the new associated event handlers.

Button stretch alignment

Buttons no longer stretch in size to more than their content requires (Windows Phone 8 XAML buttons stretch to the full available vertical and horizontal space). Apps that depend on buttons to expand beyond their content now display smaller buttons. This might adversely affect the appearance of your app. You can configure buttons to exhibit the previous stretch alignment behavior by setting the HorizontalAlignment and VerticalAlignment properties to stretch.

Styles

Headers in common controls have been standardized with a single header style that all controls use: HeaderContentPresenterStyle. As a result, the following redundant styles have been removed:

  • ComboBoxHeaderThemeFontWeight 
  • DatePickerHeaderThemeFontWeight
  • SliderHeaderThemeFontWeight
  • TimePickerHeaderThemeFontWeight
  • ComboBoxHeaderForegroundThemeBrush     
  • DatePickerHeaderForegroundThemeBrush
  • SliderHeaderForegroundThemeBrush
  • TimePickerHeaderForegroundThemeBrush
  • ComboBoxHeaderThemeMargin
  • SliderHeaderThemeMargin

Because ToolTip is an unsupported control in Windows Phone (code-named “Blue”), the following styles have been removed:

  • ToolTipBackgroundThemeBrush
  • ToolTipBorderThemeBrush
  • ToolTipForegroundThemeBrush
  • ToolTipBorderThemeThickness
  • ToolTipContentThemeFontSize

Screen resolution calculation

Logical screen resolution is now calculated using device dpi to determine scale factor instead of physical display resolution. The minimum logical resolution is now 384 x 640 instead of 480 x 800. Windows XAML apps must now take into account different logical display resolutions. You must change any app code that assumes 480 x 800 resolution or uses absolute positioning or absolute dimensions.

Search button

When a foreground app is in full-screen mode, the user must double-tap the Search button to display the search box. This change prevents accidental search activation. Apps can programmatically opt in or opt out of full-screen mode. Full-screen mode is automatically enabled for the following experiences:

  • Photo viewer
  • Video viewer
  • Taking a photo
  • Capturing a video
  • Any app in with the Games category

The delay window for two taps is set by default to 2500 milliseconds (ms); therefore, an intentional tap on the Search button must be followed by a second tap within 2500 ms to activate Search while in full screen mode. The delay window can be changed by altering the following registry setting (the value of CustomHoldDelays is in ms):

HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\CustomHoldDelays

This setting is not visible to the app user.

As a side effect of this change, users must swipe down twice to open a minimized Notification Center bar when an app is in full-screen mode.

Sharing

ShareStatusTask and ShareLinkTask now route to the Share contract. Native social networks are no longer shown in the share picker. Broadcast sharing to native social networks is no longer supported. However, apps can continue to use ShareStatusTask and ShareLinkTask. When these tasks are invoked by an app, users will see the share picker so they can choose an app to share to. Status and link information supplied by the app is carried to the share target.

Users can no longer broadcast share to multiple networks. Users of Twitter, Facebook, Sina Weibo, and LinkedIn must use apps for these social networks to compose, post, and update. Facebook Blue is built into Windows Phone (code-named “Blue”), but users of the following must download an app:

Twitter
Sina Weibo
LinkedIn

Users can use the following workaround until all social network apps support the Share contract:

  1. In the app, tap share.
  2. Share to OneNote or mail.
  3. Copy information into the target app.

Account Manager

Account Manager now uses a Managed Service Account (MSA) stack instead of the Identify Client Runtime Services Library (IDCRL) stack for the primary Microsoft account. The IDCRL stack has been deprecated. Because of this change, existing primary Microsoft accounts will be in the Attention Required state. Users must re-enter credentials using two-step verification (TSV).

Users can do the following to re-enter user credentials:

  1. On the Settings page, tap email+accounts.
  2. Tap Microsoft account.
  3. A green sign-in page appears. Enter the credentials for the Microsoft account that you use on your phone. Tap Next.
  4. On the TSV page, complete the TSV with another device or a phone call.

Users who encounter low-memory issues on their phone may have to try this process a second time or complete the verification with another device.

Not all clients have migrated to the new MSA stack. Opt-in TSV Microsoft accounts will not work until the IDCRL stack is removed. This only applies for users who have turned on TSV. This does not apply in a situation in which a user is accessing sensitive data and TSV is required regardless of opt-in. Users can do the following to turn off TSV for a Microsoft account:

  1. On your computer, go to https://account.live.com/proofs/Manage.
  2. Sign in to your account.
  3. Turn off two-step verification.

OAuth

Google account users must configure their accounts to use OAuth for authorization, even for accounts that use Credential Service Provider (CSP) authentication. To add a Google account with OAuth authorization, users can do the following:

  1. On the Settings page, tap email+accounts.
  2. Tap Google.
  3. Tap through subsequent screens to finalize authorization settings.

Users may need to pan and zoom to complete authorization. This process may not work for Google accounts where two-step verification is required. Users who encounter low-memory issues on their phone may have to try this process a second time or use a different network (such as Wi-Fi) to successfully set up a Google account.

Emulator installation

The Windows Phone (code-named “Blue”) SDK does not provide emulator support, but this functionality is available in the optional Windows Phone 8.0 SDK. When you installVisual Studio without installing the optional Windows Phone 8.0 SDK, phone emulators are no longer installed. This change does not apply to Visual Studio Express because it installs the Windows Phone 8.0 SDK by default. When you install Visual Studio (except for Visual Studio Express) without accepting the Windows Phone 8.0 SDK option, you will not see emulators listed on the Visual Studio Device menu. However, you will see a new Download Emulator 8.1 option on the Device menu. If you want to install emulators, you can do one of the following:

  • During Visual Studio setup, under Optional Features to Install, select Windows Phone 8.0 SDK.
  • Alternately, if Download Emulator 8.1 … appears in the Visual Studio Device menu, click this option and then click Install to finish emulator installation.

Microsoft Ads SDK

Pre-release versions of the Ads SDK will produce the following error message:

Error Found: The banned file analyzer test detected the following errors:

o   The version of the file Microsoft.Advertising.Mobile.UI.Design.dll in your application has been flagged as insecure or otherwise not appropriate to ship.

o   The version of the file Microsoft.Advertising.Mobile.Common.winmd in your application has been flagged as insecure or otherwise not appropriate to ship.

o   The version of the file Microsoft.Advertising.Mobile.Display.winmd in your application has been flagged as insecure or otherwise not appropriate to ship.

o   The version of the file Microsoft.Advertising.Mobile.UI.winmd in your application has been flagged as insecure or otherwise not appropriate to ship.

However, apps using pre-release versions of the Ads ADK can still be on-boarded to the device. To eliminate this error, update or remove any references to the files listed in the error message. For more information about fixing banned file errors, see Fixing Banned File Errors.

This error is expected because Windows Store Certification requirements do not allow submission of apps based on pre-release versions of the Ads SDK; this error does not occur when you use the final release version of the Ads SDK.

API changes

We encourage you to move away from deprecated APIs to get the best performance from your app. Also, some API elements have moved to new namespaces.

The following API elements are deprecated.

API element

Replace with

Pivot.LoadingPivotItem

Pivot.PivotItemLoading

Pivot.LoadedPivotItem

Pivot.PivotItemLoaded

Pivot.UnloadingPivotItem

Pivot.PivotItemUnloading

Pivot.UnloadedPivotItem

Pivot.PivotItemUnloaded

Display.DisplayProperties

Display.DisplayInformation.GetForCurrentView

MediaPlayer.UriSource

MediaPlayer.SetUriSource

ActivateBackgroundObject

IBackgroundTask (see “Background Audio”)

NavigateThemeTransition

NavigationThemeTransition

ExitTarget

ExitElement

EntranceTarget

EntranceElement

IsExitTargetProvider

ExitElementContainer

TurnstileNavigationTransitionInfo

CommonNavigationTransitionInfo

PhoneFontSize19

TextStyleLargeFontSize

PhoneFontSizeMedium

TextStyleLargeFontSize

PhoneFontSizeLarge

TextStyleExtraLargeFontSize

PivotHeaderFontSize

PivotHeaderItemFontSize

PivotTitleFontSize

TextStyleLargeFontSize

SetBoundsForLayout

SetDesiredBoundsMode

BoundsForLayout

DesiredBoundsMode

ApplicationViewLayoutBoundsOption

ApplicationViewBoundsMode

VisibleBounds

UseVisible

CoreWindowsBounds

UseCoreWindow

Windows.UI.ViewManagement.Application.IsImmersive

Windows.UI.ViewManagement.ApplicationView.   SuppressSystemOverlaysWindows.UI.ViewManagement.ApplicationView.SuppressSystemOverlays

The following API elements have new types.

API element

Old type

New type

Pivot.Title

string

object

The following API elements have moved from the Windows.UI.Xaml.Phone namespace.

API element

New namespace

DatePickerFlyout

Windows.UI.Xaml.Controls

DatePickerFlyoutItem

Windows.UI.Xaml.Controls

DatePickerFlyoutPresenter

Windows.UI.Xaml.Controls

DateSelectionCompletedEventArgs

Windows.UI.Xaml.Controls

DateSelectionCompletedEventHandler

Windows.UI.Xaml.Controls

ItemsSelectionCompletedEventArgs

Windows.UI.Xaml.Controls

ItemsSelectionCompletedEventHandle

Windows.UI.Xaml.Controls

ListPickerFlyout

Windows.UI.Xaml.Controls

ListPickerFlyoutPresenter

Windows.UI.Xaml.Controls

PickerFlyout

Windows.UI.Xaml.Controls

PickerFlyoutPresenter

Windows.UI.Xaml.Controls

Pivot

Windows.UI.Xaml.Controls

PivotItem

Windows.UI.Xaml.Controls

PivotItemEventArgs

Windows.UI.Xaml.Controls

PivotItemLoadedEventHandler

Windows.UI.Xaml.Controls

PivotItemLoadingEventHandler

Windows.UI.Xaml.Controls

PivotItemUnloadedEventHandler

Windows.UI.Xaml.Controls

PivotItemUnloadingEventHandler

Windows.UI.Xaml.Controls

PivotSlideInAnimationGroup

Windows.UI.Xaml.Controls

SelectionCompletedEventArgs

Windows.UI.Xaml.Controls

TimePickerFlyout

Windows.UI.Xaml.Controls

TimePickerFlyoutPresenter

Windows.UI.Xaml.Controls

TimeSelectionCompletedEventArgs

Windows.UI.Xaml.Controls

TimeSelectionCompletedEventHandler

Windows.UI.Xaml.Controls

JumpListItemBackgroundConverter

Windows.UI.Xaml.Controls.Primitives

JumpListItemForegroundConverter

Windows.UI.Xaml.Controls.Primitives

LoopingSelector

Windows.UI.Xaml.Controls.Primitives

LoopingSelectorItem

Windows.UI.Xaml.Controls.Primitives

LoopingSelectorPanel

Windows.UI.Xaml.Controls.Primitives

PickerFlyoutBase

Windows.UI.Xaml.Controls.Primitives

PivotHeaderItem

Windows.UI.Xaml.Controls.Primitives

PivotHeadersControl

Windows.UI.Xaml.Controls.Primitives

ContinuumNavigationTransitionInfo

Windows.UI.Xaml.Media.Animation

NavigateThemeTransition

Windows.UI.Xaml.Media.Animation

SlideNavigationTransitionInfo

Windows.UI.Xaml.Media.Animation

TurnstileNavigationTransitionInfo

Windows.UI.Xaml.Media.Animation

DatePickerFlyoutPresenterAutomationPeer

Windows.UI.Xaml.Automation.Peers

LoopingSelectorAutomationPeer

Windows.UI.Xaml.Automation.Peers

LoopingSelectorItemAutomationPeer

Windows.UI.Xaml.Automation.Peers

LoopingSelectorItemDataAutomationPeer

Windows.UI.Xaml.Automation.Peers

PivotAutomationPeer

Windows.UI.Xaml.Automation.Peers

PivotItemAutomationPeer

Windows.UI.Xaml.Automation.Peers

TimePickerFlyoutPresenterAutomationPeer

Windows.UI.Xaml.Automation.Peers

Manifest changes

MediaPlayer background tasks

Instantiating a MediaPlayer in a second process by specifying a controlChannel and ServerName in the manifest (to trigger a background process) is no longer supported. Apps that specify controlChannel and ServerName in the manifest will throw an exception instead of launching a background process. You can modify your manifest so that it specifies the background process using the same syntax as for a Windows 8.1 background task. In the Windows 8.1 model, the server name is set implicitly, and there is no controlChannel to specify.

Here is an example of a manifest entry that specifies a background task using the Windows 8.1 model:

<Extensions>
  <Extension Category=”windows.backgroundTasks” EntryPoint=”Tasks.MyBackgroundTask”>
    <BackgroundTasks>
           <Task Type=”audio” />
    </BackgroundTasks>
  </Extension>
</Extensions>

For more information, see Creating a device background task in Windows 8.1 (Windows Store device apps).

Copyright and confidentiality statements

This document is provided “as-is”. Information in this document, including URL and other Internet Web site references may change without notice.

Some examples depicted herein are provided for illustration only and are fictitious. No real association or connection is intended or should be inferred.

This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes and for no other purpose without the express written permission of Microsoft Corporation.

© 2014 Microsoft Corporation. All rights reserved.

Microsoft, Direct3D, Hyper-V, Silverlight, Visual Studio, and Windows are trademarks of the Microsoft group of companies.

wp8.1 sdk preview 预览版的更多相关文章

  1. [下载] VS 2013 Update 4 & 社群版 (Visual Studio Community) & VS 2015 Preview预览版

    这是我的备份,原文请看http://www.dotblogs.com.tw/mis2000lab/archive/2014/11/13/vs2013_update4_community_vs2015_ ...

  2. Spark3.0 preview预览版尝试GPU调用(本地模式不支持GPU)

    Spark3.0 preview预览版可以下载使用,地址:https://archive.apache.org/dist/spark/spark-3.0.0-preview/,pom.xml也可以进行 ...

  3. Blazor client-side Preview 预览版 如何调试 Debug

    首先我们使用最简单的模板案例,里面有一个Counter计数器,你可以在创建模板中找到. 首先需要设置运行调试方式为IIS Express.这意味着,MAC可能不能使用调试. 然后开启运行而不调试(Ct ...

  4. visual studio 2015预览版系统需求

    visual studio 2015预览版的系统需求跟visual studio 2013的一样. 支持visual studio 2015 preview的操作系统:Windows 8.1(x86 ...

  5. WP8没有开发者账号升级GDR3预览版的方法

    很多希望尝鲜WP8 GDR3的朋友一样希望提前体验GDR3的效果,但苦于没有开发者账号而不得其门!今天为大家带来普通账号升级GDR3的方法! 工具/原料 WP8智能手机 可用wifi热点 方法/步骤 ...

  6. Android 发布可穿戴设备 SDK 的开发者预览版

    今早上安卓官网查资料,发现网站上赫然显示着"Android Wear"几个大字.难道……?点进去看,果然,Android发布了可穿戴设备的SDK的开发者预览版. 其中这第五张图…… ...

  7. 宣布发布 Windows Azure SDK 2.2,正式发布 Windows Azure Backup 和 Hyper-V 恢复管理器预览版

    开发人员正逐渐转向云计算,因为它具有众多优势,包括成本.自动化和让开发人员专注于应用程序逻辑的能力.我们很高兴地宣布,继推出 Visual Studio 2013 之后,今天将发布 Windows A ...

  8. Win10《芒果TV - Preview》官方指定预览版 - 重要使用注意事项

    Win10<芒果TV - Preview>官方指定预览版,最新的改进和功能更新将会此版本优先体验. 重要使用注意事项: 1.因为方便过审核,默认将会员相关的操作提示简化: 2.使用中务必手 ...

  9. 微软.NET CORE 3.0 预览版 7 发布:大幅减少 SDK 空间大小

    据悉,这个预览版是 .Net Core 3 中重要的版本,可以视为原计划在 7 月发布的 RC 版本 (引自微软 .NET Core 首席 Program Manager Richard 先生原话), ...

随机推荐

  1. C#的弱引用

    关于C#中的弱引用 一:什么是弱引用 了解弱引用之前,先了解一下什么是强引用 例如 : Object obj=new Object();     就是一个强引用,内存分配一份空间给用以存储Object ...

  2. js 跨浏览器实现事件

    我们知道不同的浏览器实现事件是不同的,就比如说我们常见的有三种方法: 1,dom0处理事件的方法,以前的js处理事件都是这样写的. (function () { var p=document.getE ...

  3. find搜索文件系统,实时搜索

    find搜索文件系统.实时搜索 find[目录][条件][动作] [目录] 不输入目录代表当前目录 find find /etc ----------------------------------- ...

  4. 第5章 引用类型---JS红宝书书摘系列笔记

    在ECMAScript中,引用类型是一种数据结构,用于将数据和功能组织在一起,描述的是一类对象所具有的属性和方法.而对象是某个特定引用类型的实例. 一.Object类型 可以通过Object构造函数创 ...

  5. 超简单!一步创建自己的wifi热点~

    还在用某某卫士.某某管家创建wifi热点,甚至被忽悠专门买一个随身wifi吗?现在答案明确了:你完全用不着它们了.因为有更简单的方法. 只需要两个bat文件.一个用来启动wifi热点,另一个用来关闭w ...

  6. codevs 1146 ISBN号码

    时间限制: 1 s  空间限制: 128000 KB  题目等级 : 白银 Silver 题目描述 Description 每一本正式出版的图书都有一个ISBN号码与之对应,ISBN码包括9位数字.1 ...

  7. Dance links算法

    其实Dance links只是一种数据结构,Dance links 才是一种算法.dacing links x就是一个高效的求解该类问题的算法,而这种算法,基于交叉十字循环双向 链表.下面是双向十字链 ...

  8. C#背景图片自适应

    1.选中窗体修改属性 2.在load添加代码 private void Form1_Load(object sender, EventArgs e) { this.BackgroundImageLay ...

  9. Jordan 标准型定理

    将学习到什么 就算两个矩阵有相同的特征多项式,它们也有可能不相似,那么如何判断两个矩阵是相似的?答案是它们有一样的 Jordan 标准型.   Jordan 标准型定理 这节目的:证明每个复矩阵都与一 ...

  10. 总结 Swift 中随机数的使用

    在我们开发的过程中,时不时地需要产生一些随机数.这里我们总结一下Swift中常用的一些随机数生成函数.这里我们将在Playground中来做些示例演示. 整型随机数 如果我们想要一个整型的随机数,则可 ...