wp8.1 sdk preview 预览版
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:
- Add the entry point in the AppX manifest.
- 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:
Users can use the following workaround until all social network apps support the Share contract:
- In the app, tap share.
- Share to OneNote or mail.
- 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:
- On the Settings page, tap email+accounts.
- Tap Microsoft account.
- A green sign-in page appears. Enter the credentials for the Microsoft account that you use on your phone. Tap Next.
- 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:
- On your computer, go to https://account.live.com/proofs/Manage.
- Sign in to your account.
- 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:
- On the Settings page, tap email+accounts.
- Tap Google.
- 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 预览版的更多相关文章
- [下载] VS 2013 Update 4 & 社群版 (Visual Studio Community) & VS 2015 Preview预览版
这是我的备份,原文请看http://www.dotblogs.com.tw/mis2000lab/archive/2014/11/13/vs2013_update4_community_vs2015_ ...
- Spark3.0 preview预览版尝试GPU调用(本地模式不支持GPU)
Spark3.0 preview预览版可以下载使用,地址:https://archive.apache.org/dist/spark/spark-3.0.0-preview/,pom.xml也可以进行 ...
- Blazor client-side Preview 预览版 如何调试 Debug
首先我们使用最简单的模板案例,里面有一个Counter计数器,你可以在创建模板中找到. 首先需要设置运行调试方式为IIS Express.这意味着,MAC可能不能使用调试. 然后开启运行而不调试(Ct ...
- visual studio 2015预览版系统需求
visual studio 2015预览版的系统需求跟visual studio 2013的一样. 支持visual studio 2015 preview的操作系统:Windows 8.1(x86 ...
- WP8没有开发者账号升级GDR3预览版的方法
很多希望尝鲜WP8 GDR3的朋友一样希望提前体验GDR3的效果,但苦于没有开发者账号而不得其门!今天为大家带来普通账号升级GDR3的方法! 工具/原料 WP8智能手机 可用wifi热点 方法/步骤 ...
- Android 发布可穿戴设备 SDK 的开发者预览版
今早上安卓官网查资料,发现网站上赫然显示着"Android Wear"几个大字.难道……?点进去看,果然,Android发布了可穿戴设备的SDK的开发者预览版. 其中这第五张图…… ...
- 宣布发布 Windows Azure SDK 2.2,正式发布 Windows Azure Backup 和 Hyper-V 恢复管理器预览版
开发人员正逐渐转向云计算,因为它具有众多优势,包括成本.自动化和让开发人员专注于应用程序逻辑的能力.我们很高兴地宣布,继推出 Visual Studio 2013 之后,今天将发布 Windows A ...
- Win10《芒果TV - Preview》官方指定预览版 - 重要使用注意事项
Win10<芒果TV - Preview>官方指定预览版,最新的改进和功能更新将会此版本优先体验. 重要使用注意事项: 1.因为方便过审核,默认将会员相关的操作提示简化: 2.使用中务必手 ...
- 微软.NET CORE 3.0 预览版 7 发布:大幅减少 SDK 空间大小
据悉,这个预览版是 .Net Core 3 中重要的版本,可以视为原计划在 7 月发布的 RC 版本 (引自微软 .NET Core 首席 Program Manager Richard 先生原话), ...
随机推荐
- python_22(Form-CRM)
第1章 CRM 1.1 建项目 1.2 settings1.3 规范url 1.4 公共的后台模板1.5 创建部门表 1.6 建库移库 1.7 母版继承 1.7.1 导入static 1.7.2 导入 ...
- Linux 环境下安装 Nginx+php+mysql 开发环境
一直以来都没有养成记录学习的好习惯,我想从这么一天开始,把自己学习和工作中的经验和坑都记录下来.等到以后老的时候还有可以回忆的地方. 最近在学习linux,虽然已经玩linux很久了,但是没有怎么用心 ...
- Visual Studio使用技巧学习
F7: 代码窗口 Shift+F7: 对象窗口 F4: 属性窗口 闪电图标: 对象的事件 F5: 编译及运行 Ctrl+F5: 编译及运行(不调试) svm+两次Tab: s ...
- shell中使用ssh
ssh服务是不能用非交互的方式传递密码,想不输入密码,直接ssh连接到服务器有两种方法,sshpass和expect sshpass # wget http://downloads.sourcefor ...
- winform中显示标题,点击打开链接
效果:显示的是标题,但是点击打开的是链接 思路:定义一个类,将类实例化,向类中写入数据,再将类放到listbox中,设置listbox的显示分类为文本 前台:放入一个listbox控件 后台: pub ...
- httpmodule初识
.net的请求流程: HttpRequest-->inetinfo.exe->ASPNET_ISAPI.DLL-->Http Pipeline-->ASPNET_WP.EXE- ...
- (转)MyBatis框架的学习(三)——Dao层开发方法
http://blog.csdn.net/yerenyuan_pku/article/details/71700957 使用MyBatis开发Dao层,通常有两个方法,即原始Dao开发方法和Mappe ...
- 引入了junit为什么还是用不了@Test注解
pom文件明明引入了unit,为什么还是用不了@Test? 配置如下: <dependency> <groupId>junit</groupId> <arti ...
- python之list [ 列表 ]
1. 列表是什么? list [ ] 逗号隔开 是一个容器 可以存放任意类型 列表 == 书包 书包里可以放水杯.衣服.袜子.钱包 钱包里可以放钱.身份证件,可以包套包 2. 列表能干什么? 存储大量 ...
- ECMAScript 继承机制实现
继承机制的实现 要用 ECMAScript 实现继承机制,您可以从要继承的基类入手.所有开发者定义的类都可作为基类.出于安全原因,本地类和宿主类不能作为基类,这样可以防止公用访问编译过的浏览器级的代码 ...