適用於開發人員的 Windows 10 (組建 10240) 的新功能What's new in Windows 10 for developers, build 10240

Windows 10 組建 10240 與更新的 SDK 提供提供工具、功能及體驗來造就不凡的通用 Windows 平台應用程式。Windows 10 build 10240 and the updated SDK provide the tools, features, and experiences to make remarkable Universal Windows Platform apps. 在 Windows 10 上安裝工具和 SDK 之後,您已經準備好可以建立新的通用 Windows 應用程式,或探索如何使用您在Windows 上的現有應用程式碼After installing the tools and SDK on Windows 10, you’re ready to either create a new Universal Windows app or explore how you can use your existing app code on Windows.

以下為您逐項列出 Windows 10 組建 10240 (也稱為 Windows 10 版本 1507) 中的新功能。Here's a feature-by-feature look at what's new for you in Windows 10 build 10240 (Also known as Windows 10 version 1507).

彈性配置Adaptive layouts

功能Feature 說明Description
訂製內容的多重檢視Multiple Views for tailored content XAML 針對共用相同程式碼檔案的獨特檢視 (.xaml 檔案),提供了定義這些檢視的新支援。XAML provides new support for defining tailored views (.xaml files) that share the same code file. 這可讓您輕鬆建立及維護針對特定裝置系列或案例而設計的不同檢視。This makes it easier for you to create and maintain different views that are tailored to a specific device family or scenario. 如果您的 app 有相異的 UI 內容、配置或瀏覽模型在不同的情況下會有很大的差異,請建立多重檢視。If your app has distinct UI content, layout, or navigation models that are drastically different for different scenarios, build multiple views. 例如,對於您的行動應用程式上針對單手使用最佳化的導覽功能,您可以搭配使用 Pivot,但對於您的桌面應用程式上針對滑鼠最佳化的導覽功能,則可以搭配使用 SplitViewFor example, you might use a Pivot with navigation optimized for one-handed use on your mobile app, but use a SplitView with a navigation menu optimized for mouse on your desktop app.
StateTriggersStateTriggers 使用新的 VisualState.StateTriggers 功能,您就可以視情況依據視窗高度/寬度,或依據自訂觸發程序來設定屬性。Using the new VisualState.StateTriggers feature, you can conditionally set properties based on window height/width or based on a custom trigger. 之前,您必須使用程式碼來處理 Window SizeChanged 活動,並呼叫 VisualStateManager.GotoStatePreviously, you had to handle Window SizeChanged events in code and call VisualStateManager.GotoState.
SetterSetters 使用新的 VisualState.Setters 語法,您就可以使用簡化過的標記來定義 VisualStateManager 中的屬性變更。Using the new VisualState.Setters syntax, you can use simplified markup to define property changes in VisualStateManager. 之前,您必須使用 Storyboard 並建立動畫來套用屬性變更,例如將 StackPanel 的方向從水平變更成垂直。Previously, you had to use a Storyboard and create animations to apply property changes such as changing the orientation of a StackPanel from Horizontal to Vertical. 在通用 Windows 應用程式中,您可以使用這個較簡單的 Setter 語法︰In Universal Windows apps, you can use this simpler Setter syntax:

XAML 功能XAML features

功能Feature 說明Description
編譯的資料繫結 (x:Bind)Compiled data bindings (x:Bind) 在通用 Windows app 中,您可以使用因 x:Bind 屬性而實現的以編譯器為基礎的新繫結機制。In Universal Windows apps, you can use the new compiler-based binding mechanism enabled by the x:Bind property. 編譯器型繫結是強型別,並且在編譯期間進行處理,不僅速度更快,並且可在繫結類型不符時提供編譯時間錯誤。Compiler-based bindings are strongly typed and processed at compile time, which is both faster and provides compile time errors when binding types are mismatched. 由於繫結會轉譯為編譯的應用程式程式碼,因此,現在您可以在 Visual Studio 中逐步執行程式碼以診斷特定的繫結問題,進而對繫結進行偵錯。And because bindings are translated to compiled app code, you can now debug bindings by stepping through code in Visual Studio to diagnose specific binding issues. 您也可以使用 x:Bind 繫結至方法,如下所示︰ 對於典型的繫結案例,您可以使用 x:Bind 取代 Binding,而獲得較佳的效能和可維護性。You can also use x:Bind to bind to a method, like this: For typical binding scenarios, you can use x:Bind in place of Binding, and get improved performance and maintainability.
清單的宣告式增量轉譯 (x:Phase)Declarative incremental rendering of lists (x:Phase) 在通用 Windows app 中,新的 x:Phase 屬性可讓您使用 XAML 代替程式碼來執行增量 (或階段式) 清單轉譯。In Universal Windows apps, the new x:Phase attribute lets you perform incremental, or phased, rendering of lists using XAML instead of code. 平移具有複雜項目的較長清單時,app 轉譯項目的速度可能無法跟上平移的速度,而造成不佳的使用者體驗。When panning long lists with complex items, your app might not be able to render items fast enough to keep up with the speed of panning, producing a poor experience for your users. 分階段的轉譯可讓您指定清單項目中個別元素的優先順序,使快速平移案例中只會轉譯清單項目中最重要的部分。Phased rendering lets you specify the rendering priority of individual elements in a list item, so only the most important parts of the list item are rendered in fast panning scenarios. 這會為您的使用者產生更順暢的平移體驗。This produces a smoother panning experience for your user.

在 Windows 8.1 中,您可以處理 ContainerContentChanging 活動,並撰寫程式碼來以階段方式轉譯清單項目。In Windows 8.1, you could handle the ContainerContentChanging event and write code to render list items in phases. 在 UWP app 中,您可以使用 x:Phase 屬性透過宣告方式完成分階段的轉譯。In UWP apps, you can accomplish phased rendering declaratively using the x:Phase attribute. X:phase 與編譯的繫結 X:bind 搭配使用時,可讓您輕鬆地為資料範本中的每個繫結元素指定轉譯優先順序。Used in conjunction with compiled bindings x:Bind, x:Phase lets you easily specify a rendering priority for each bound element in a data template. 在平移時,轉譯項目的工作會根據的階段分配時間,因此可支援增量項目轉譯。When panning, the work to render items is time-sliced based on the phase, which enables incremental item rendering.
UI 元素延遲載入 (x:deferLoadstrategy)Deferred loading of UI elements (x:deferLoadstrategy) 在通用 Windows 應用程式中,新的 x:deferLoadstrategy 指示詞可讓您指定使用者介面要延遲載入的部分,這可以改進啟動效能並減少您 app 的記憶體使用量。In Universal Windows apps, the new x:deferLoadstrategy directive lets you specify parts of your user interface to be delay-loaded, which improves start-up performance and reduces the memory usage of your app. 例如,如果您的應用程式 UI 有某個資料驗證元素只有在輸入不正確的資料時才會顯示,則您可以延遲到需要時才載入該元素。For example, if your app UI has an element for data validation that is shown only when incorrect data is entered, you can delay loading of that element until it’s needed. 隨後,元素物件並不會在頁面載入時建立,而只會在有資料錯誤而需要將其新增至頁面的視覺化樹狀結構時才會建立。Then, the element objects aren’t created when the page is loaded; instead, they’re created only when there’s a data error and they are needed to be added to the page’s visual tree.
SplitViewSplitView 新的 SplitView 控制可提供讓您很容易地顯示及隱藏透明內容的方式。The new SplitView control gives you a way to easily show and hide transient content. 它通常用於最上層瀏覽狀況,例如「漢堡功能表」,其中瀏覽內容是隱藏的,並且會視使用者巨集指令的執行結果而在需要時滑入。It’s commonly used for top-level navigation scenarios like the "hamburger menu", where the navigation content is hidden, and slides in when needed as the result of a user action.
RelativePanelRelativePanel RelativePanel 是一個新的版面配置面板,可讓您定位及排列彼此有關係或與上層面板有關係的子物件。RelativePanel is a new layout panel that lets you position and align child objects in relation to each other or the parent panel. 例如,您可以指定某個文字應一律位於面板左側,而按鈕應一律對齊於文字下方。For example, you can specify that some text should always be positioned to the left side of the panel, and a Button should always align below the text. 在建立沒有清楚線性樣式的使用者介面時,請使用會叫用 StackPanelGrid 的 ReleativePanel。Use ReleativePanel when creating user interfaces that do not have a clear linear pattern that would call for use a StackPanel or Grid.
CalendarViewCalendarView CalendarView 控制項可讓您很容易地使用可自訂且以月份為基礎的檢視,來檢視及選取日期與日期範圍。The CalendarView control makes it easy to view and select dates and date ranges using a customizable, month based view. CalendarView 支援像是下限、上限及限制日期等功能,以限制可以選擇的日期。CalendarView supports features such as minimum, maximum, and blackout dates to limit which dates can be selected. 您也可以設定自訂密度列,以用來顯示特定日之排程的一般「行程密度」。You can also set custom density bars that can be used to show the general "fullness" of the schedule on a particular day.
CalendarDatePickerCalendarDatePicker CalendarDatePicker 是一個下拉式控制項,當天次或行事曆完整度等相關資訊很重要時,已經針對從 CalendarView 選擇單一日期最佳化。CalendarDatePicker is a drop-down control that’s optimized for picking a single date from a CalendarView where contextual information like the day of the week or fullness of the calendar is important. 它類似於 DatePicker 控制項,但是 DatePicker 是針對選擇已知日期 (例如生日) 最佳化。It’s similar to the DatePicker control, but the DatePicker is optimized for picking a known date, such as a date of birth.
MediaTransportControlsMediaTransportControls 新的 MediaTransportControls 類別可讓您更容易自訂 MediaElement 的傳輸控制項。The new MediaTransportControls class makes it easier to customize the transport controls of a MediaElement. 在 Windows 8.1 中,您可以啟用 MediaElement 的內建傳輸控制項,或自行建立傳輸控制項來呼叫 MediaElement 方法。In Windows 8.1, you could enable MediaElement’s built-in transport controls, or create your own transport controls that called MediaElement methods. 現在您可以使用 MediaTransportControls 的內建功能,且仍然可以很容易地自訂適合您應用程式的外觀。Now you can use the built-in functionality of MediaTransportControls, and still easily customize the look to suit your app.
屬性變更通知Property change notifications 在通用 Windows app 中,您可以接聽 DependencyObjects 上的屬性變更,甚至接聽沒有相對應變更活動的屬性。In Universal Windows apps, you can listen for property changes on DependencyObjects, even for properties that don’t have corresponding change events. 通知的運作方式與事件相似,但實際上會公開做為回呼。The notification operates like an event, but is actually exposed as a callback. 和事件處理常式一樣,回呼會使用寄件者引數,但不會使取事件引數。The callback takes a sender argument just like an event handler, but doesn’t take an event argument. 它只會傳入屬性識別碼,以指出屬性。Instead, only the property identifier is passed to indicate which property. 透過這項資訊,您的 app 將可為多個屬性通知定義單一處理常式。With this info your app can define a single handler for multiple property notifications. 如需詳細資訊,請參閱 RegisterPropertyChangedCallbackUnregisterPropertyChangedCallbackFor more info, see RegisterPropertyChangedCallback and UnregisterPropertyChangedCallback.
地圖Maps MapControl 類別已更新,可提供空照圖 3D 影像與街景。The MapControl class been updated to provide aerial 3D imagery and street-level views. 這些新功能與先前的地圖功能,現在皆可供通用 Windows app 使用。These new features and earlier mapping functionality are now available to Universal Windows apps. 請使用下列 API,將對應新增到您的 app:Windows.UI.Xaml.Controls.MapsWindows.Services.MapsAdd mapping to your app with the following APIs: Windows.UI.Xaml.Controls.Maps and Windows.Services.Maps. 若要立即在通用 Windows App 中開始使用這些 API,請向 Bing 地圖開發人員中心要求金鑰。To start using these APIs in a Universal Windows app today, request a key from the Bing Maps Developer Center. 如需詳細資訊,請參閱如何驗證地圖 AppFor more info, see How to authenticate a Maps app. 此外,電腦及手機使用者可以從 [設定] App 下載離線地圖,這是 Windows 10 的新功能之一。Also new for Windows 10, PC and phone users can download offline maps from the Settings app. 當有離線地圖可用時,MapControl 會在沒有網際網路存取時,使用離線地圖來顯示地圖。When available, offline maps are used by the MapControl to display maps when no internet access is available.
輸入按鈕對應Input button mapping Windows.UI.Xaml.Input.KeyEventArgs 類別有新的 OriginalKey 屬性,及其對應的 Windows.System.VirtualKey 更新,讓您可以取得與鍵盤輸入活動關聯之原始且未對應的輸入按鈕。The Windows.UI.Xaml.Input.KeyEventArgs class has a new OriginalKey property that, along with a corresponding update to Windows.System.VirtualKey, enables you to get the original, unmapped input button associated with the keyboard input event.
筆跡Inking 有了 InkCanvas 控制項與基礎 InkPresenter 類別之後,現在可以更容易地使用採用 C++、C# 或 Visual Basic 的 Windows 執行階段應用程式中強大的筆跡功能。It’s now simpler to use the robust inking functionality in Windows Runtime apps using C++, C#, or Visual Basic, thanks to the InkCanvas control and underlying InkPresenter classes. InkCanvas 控制項定義了一個用於繪圖及轉譯筆跡筆觸的重疊區域。The InkCanvas control defines an overlay area for drawing and rendering ink strokes. 這個控制項的功能 (輸入、處理和轉譯) 來自 InkPresenterInkStrokeInkRecognizersInkSynchronizer 類別。The functionality for this control (input, processing, and rendering) comes from the InkPresenter, InkStroke, InkRecognizers, and InkSynchronizer classes. 重要事項: 使用 JavaScript 的 Windows 應用程式不支援這些類別。Important: These classes are not supported in Windows apps using JavaScript.

更新的 XAML 功能Updated XAML features

功能Feature 說明Description
CommandBar 和 AppBar 更新CommandBar and AppBar updates CommandBarAppBar 控制項已經更新,現已可讓跨裝置系列使用的 UWP app 具備一致的 API、行為與使用者體驗。The CommandBar and AppBar controls have been updated to have a consistent API, behavior and user experience for UWP apps across device families.

通用 Windows app 的 CommandBar 控制項已經經過改良,以提供 AppBar 功能的超集,並在 app 中提供更好的運用彈性。The CommandBar control for Universal Windows apps has been improved to provide a superset of AppBar functionality and greater flexibility in how you can use it in your app. 您應該為 Windows 10 上所有新的通用 Windows app 使用 CommandBar。You should use CommandBar for all new Universal Windows apps on Windows 10. 在 Windows 8.1 的 CommandBar 中,您只能使用建置 ICommandBarElement 的控制項,例如 AppBarButtonIn a CommandBar in Windows 8.1, you could use only controls that implemented ICommandBarElement, like AppBarButton. 在通用 Windows app 中,您現在除了可在 AppBarButtons 中放入自訂內容之外,也可在 CommandBar 中放入自訂內容。In Universal Windows apps, you can now put custom content in the CommandBar in addition to AppBarButtons.

AppBar 控制項已經更新,可讓您更容易地將使用 AppBar 的 Windows 8.1 app 移動到通用 Windows 平台。The AppBar control has been updated to let you more easily move your Windows 8.1 apps that use AppBar to the Universal Windows Platform. AppBar 是針對與全螢幕型 app 搭配使用,及針對使用邊緣手勢叫用所設計。AppBar was designed to be used with full-screen apps, and to be invoked using edge gestures. 控制帳戶已針對 Windows 10 中視窗化 App 和缺少邊緣手勢等問題進行更新。Updates to the control account for issues such as windowed apps and the lack of edge gestures in Window 10.

隱藏的 AppBar.ClosedDisplayMode 之前僅能在 Windows Phone 上使用,現在所有裝置系列都已支援,讓您能夠在不同等級的命令提示之間選擇。The Hidden AppBar.ClosedDisplayMode, previously only on Windows Phone, is now supported on all device families, letting you choose between different levels of hints for commands. AppBar 預設會顯示最少提示,以便將 Windows 8.1 應用程式升級為通用 Windows app 時提供您一致性,升級至通用 Windows app 之後,您就不需要再依賴平台中的邊緣手勢支援。The AppBar shows a minimal hint by default to provide consistency for you when upgrading your Windows 8.1 apps to Universal Windows apps where you can no longer rely on the edge gesture support in the platform.
GridView 更新GridView updates 在 Windows 10 之前,預設的 GridView 版面配置方向在 Windows 上是水平式,在 Windows Phone 上是垂直式。Prior to Windows 10, the default GridView layout orientation was horizontal on Windows and vertical on Windows Phone. 在 UWP app 中,GridView 針對所有裝置系列預設使用垂直版面配置,以確保您能夠獲得一致的預設經驗。In UWP apps, GridView uses a vertical layout by default for all device families to ensure you have by consistent default experience.
AreStickyGroupHeadersEnabled 屬性AreStickyGroupHeadersEnabled property 當您在 ListViewGridView 中顯示群組過的資料時,群組標頭現在可於清單捲動時維持顯示。When you show grouped data in a ListView or GridView, the group headers now remain visible when the list is scrolled. 這在大型資料集中是很重要的,因為其標頭會提供使用者所檢視的資料內容。This is important in large data sets where the header provides context for the data the user is viewing. 不過,如果每個群組中只有少數幾個元素,您可能會想要將項目的標頭捲動到螢幕外。However, in cases where there are only a few elements in each group, you might want to have the headers scroll off-screen with the items. 您可以在 ItemsStackPanelItemsWrapGrid 上設定 AreStickyGroupHeadersEnabled 屬性來控制此行為。You can set the AreStickyGroupHeadersEnabled property on ItemsStackPanel and ItemsWrapGrid to control this behavior.
GroupHeaderContainerFromItemContainer 方法GroupHeaderContainerFromItemContainer method 當您在 ItemsControl 中顯示已經群組的資料時,您可以呼叫 GroupHeaderContainerFromItemContainer 方法來取得對群組上層標頭的參照。When you show grouped data in an ItemsControl, you can call the GroupHeaderContainerFromItemContainer method to get a reference to the parent header for the group. 例如,如果使用者刪除了群組中的最後一個項目,您可以取得群組標頭的參考,並一併移除項目和群組標頭。For example, if a user deletes the last item in a group, you can get a reference to the group header and remove both the item and group header together.
ChoosingGroupHeaderContainer 事件ChoosingGroupHeaderContainer event ListViewBase 上新的 ChoosingGroupHeaderContainer 活動可讓您在 ListView 或 GridView 中群組標頭上設定狀態。The new ChoosingGroupHeaderContainer event on ListViewBase lets you set state on the group headers in a ListView or GridView. 例如,您可以處理此活動來設定群組標頭上的 AutomationProperties.Nameproperty,以使用輔助技術來代表群組。For example, you might handle this event to set the AutomationProperties.Nameproperty on the group header to represent the group in assistive technologies.
ChoosingItemContainer 事件ChoosingItemContainer event ListViewBase 上新的 ChoosingItemContainer 活動可在 ListViewGridView 的 UI 虛擬化上提供您更完整的控制能力。The new ChoosingItemContainer event on ListViewBase gives you greater control over UI virtualization in a ListView or GridView. 請與 ContainerContentChanging 活動搭配使用此活動來維持您自己的重複使用容器佇列,以在需要時從中取用容器。Use this event in conjunction with the ContainerContentChanging event to maintain your own queue of recycled containers from which to draw upon as needed. 例如,如果資料來源已因為篩選而重設,您可以快速比對已建立的視覺效果集 (ItemContainers) 和其資料,以達到最佳效能。For example, if the data source has been reset due to filtering, you can quickly match an already created set of visuals (ItemContainers) with their data to achieve best performance.
清單捲動虛擬化List scrolling virtualization XAML ListViewGridView 控制項具有新的 ListViewBase.ChooseItemContainer 活動,可改善資料集合中發生變更時,控制項的效能。The XAML ListView and GridView controls have a new ListViewBase.ChooseingItemContainer event that improves the performance of the control when a change occurs in the data collection. 系統現在不會執行會重新顯示入口動畫的完整清單重設,而會保有目前在檢視中的項目以及焦點和選取狀態;檢視區中的新項目和移除的項目會以動畫方式流暢地移入和移出。Instead of doing a complete reset of the list, which replays the entrance animation, the system now maintains items currently in view, along with focus and selection state; new and removed items in the viewport animate in and out smoothly. 在資料集合中 (其中的容器未受到破壞) 進行變更後,應用程式可以快速地將任何「舊」項目與先前的容器比對,並跳過容器週期覆寫方法的進一步處理。After a change in the data collection in which containers are not destroyed, an app can quickly match any "old" items with their previous container and skip further processing of container-lifecycle override methods. 只有「新」項目會被處理,並與回收的或新的容器產生關聯。Only "new" items are processed and associated with recycled or new containers.
SelectRange 方法和 SelectedRanges 屬性SelectRange method and SelectedRanges property 在通用 Windows app 中,ListViewGridView 控制項現在可讓您以項目索引範圍 (而非項目物件參照) 方式選取項目。In Universal Windows apps, ListView and GridView controls now let you select items in terms of ranges of item indexes instead of item object references. 以此方式說明選取項目會更有效率,因為不需要為每個選取的項目建立項目物件。This is a more efficient way to describe item selection because item objects don’t need to be created for each selected item. 如需詳細資訊,請參閱 ListViewBase.SelectedRangesListViewBase.SelectRangeListViewBase.DeselectRangeFor more info, see ListViewBase.SelectedRanges, ListViewBase.SelectRange, and ListViewBase.DeselectRange.
新的 ListViewItemPresenter APINew ListViewItemPresenter APIs ListViewGridView 使用項目簡報者來為選擇項目與焦點項目提供預設視覺效果。ListView and GridView use item presenters to provide the default visuals for selection and focus. 在 UWP app 中,ListViewItemPresenterGridViewItemPresenter 有新的屬性,可讓您進一步自訂清單項目的視覺效果。In UWP apps, ListViewItemPresenter and GridViewItemPresenter have new properties that let you further customize visuals for list items. 新的屬性為 CheckBoxBrush、CheckMode、FocusSecondaryBorderBrush、PointerOverForeground、PressedBackground 及 SelectedPressedBackground。The new properties are CheckBoxBrush, CheckMode, FocusSecondaryBorderBrush, PointerOverForeground, PressedBackground, and SelectedPressedBackground.
SemanticZoom 更新SemanticZoom updates SemanticZoom 控制項現在對於可跨所有裝置系列使用的 UWP app 具有一致的行為。The SemanticZoom control now has one consistent behavior for UWP apps across all device families. 在放大檢視中與縮小檢視之間切換的預設動作,是點選放大檢視中的群組標頭。The default action to switch between the zoomed in view and the zoomed out view is to tap on a group header in the zoomed in view. 此行為與 Windows Phone 8.1 上的行為相同,但與使用捏合手勢進行縮放的 Windows 8.1 不同。This is the same as the behavior on Windows Phone 8.1, but is a change from Windows 8.1, which used the pinch gesture to zoom. 若要使用捏合縮小來變更檢視,請設定 SemanticZoom 之內部 ScrollViewer 上的 ScrollViewer.ZoomMode="Enabled"。To change views using pinch-to- zoom, set ScrollViewer.ZoomMode="Enabled" on the SemanticZoom’s internal ScrollViewer.

在通用 Windows 應用程式中,縮小檢視會取代放大檢視,且其大小會與它所取代的檢視相同。For Universal Windows apps, the zoomed out view replaces the zoomed in view and is the same size as the view that it replaced. 此行為與 Windows 8.1 上的行為相同,但與 Windows Phone 8.1 不同;在 Windows Phone 8.1 中,縮小檢視會佔用整個螢幕大小,並呈現在所有其他內容之上。This is the same as the behavior on Windows 8.1, but is a change from Windows Phone 8.1, where the zoomed out view took up the full size of the screen and was rendered on top of all other content.
DatePicker 和 TimePicker 更新DatePicker and TimePicker updates DatePickerTimePicker 控制項現在具有一致的實作方式,用於可跨所有裝置系列使用的通用 Windows app。The DatePicker and TimePicker controls now have one consistent implementation for Universal Windows apps across all device families. 它們在 Windows 10 中也有新的外觀。They also have a new look for Windows 10. 現在在所有裝置上,控制項的快顯部分是使用 DatePickerFlyoutTimePickerFlyout 控制項。The pop-up portion of the control now uses DatePickerFlyout and TimePickerFlyout controls on all devices. 這與 Windows Phone 8.1 中的行為相同,但是與 Windows 8.1 中使用 ComboBox 控制項的行為不同。This is the same as the behavior on Windows Phone 8.1, but is a change from Windows 8.1, which used ComboBox controls. 使用飛出視窗控制項可讓您更容易建立自訂的日期與時間選擇器。Using the flyout controls lets you easily create customized date and time pickers.
新的 ScrollViewer APINew ScrollViewer APIs ScrollViewer 擁有新的 DirectManipulationStartedDirectManipulationCompleted 活動,用來在觸碰移動瀏覽開始及結束時通知您的應用程式。ScrollViewer has new DirectManipulationStarted and DirectManipulationCompleted events to notify your app when touch panning starts and stops. 您可以處理這些事件,以協調您的 UI 與這些使用者動作。You can handle these events to coordinate your UI with these user actions.
MenuFlyout 更新MenuFlyout updates 在通用 Windows app 中,有新的 API 可讓您更輕鬆地建置更好的操作功能表。In Universal Windows apps, there are new APIs that let you build better context menus more easily. 新的 MenuFlyout.ShowAt 方法可讓您指定相較於其他元素,顯示飛出視窗的位置。The new MenuFlyout.ShowAt method lets you specify where you want the flyout to appear in relation to another element. (而 MenuFlyout 甚至可與您應用程式的視窗界限重疊。)使用新的 MenuFlyoutSubItem 類別建立串聯功能表。(And your MenuFlyout can even overlap the boundaries of your app’s window.) Use the new MenuFlyoutSubItem class to create cascading menus.
ContentPresenter、Grid 和 StackPanel 的新框線屬性New Border properties for ContentPresenter, Grid, and StackPanel 一般容器控制項具有新的框線屬性,可讓您沿著控制項繪製框線,而不需要在 XAML 中新增額外的框線元素。Common container controls have new border properties that let you draw a border around them without adding an additional Border element to your XAML. ContentPresenterGridStackPanel 具有下列新屬性:BorderBrush、BorderThickness、CornerRadius 和 Padding。ContentPresenter, Grid, and StackPanel have these new properties: BorderBrush, BorderThickness, CornerRadius, and Padding.
ContentPresenter 上的新文字 APINew text APIs on ContentPresenter ContentPresenter 具有新的 API,可讓您更充分掌控文字顯示:LineHeight、LineStackingStrategy、MaxLines 和 TextWrapping。ContentPresenter has new APIs that give you more control over text display: LineHeight, LineStackingStrategy, MaxLines, and TextWrapping.
系統焦點視覺效果System Focus Visuals XAML 控制項的焦點視覺效果現在由系統所建立,而不是宣告為控制項範本中的 XAML 元素。Focus visuals for XAML controls are now created by the system, instead of being declared as XAML elements in the control template. 焦點視覺效果通常不需要在行動裝置上,讓系統視需要加以建立及管理,可改善應用程式效能。The focus visuals are not typically needed on mobile devices, and letting the system create and manage them as needed improves app performance. 如果您需要進一步控制焦點視覺效果,您可以覆寫系統行為,並提供一個定義焦點視覺效果的自訂控制項範本。If you need greater control over focus visuals, you can override the system behavior and providing a custom control template that defines focus visuals. 請參閱 UseSystemFocusVisualsIsTemplateFocusTarget 瞭解詳細資訊。See UseSystemFocusVisuals and IsTemplateFocusTarget for more info.
PasswordBox.PasswordRevealModePasswordBox.PasswordRevealMode 在通用 Windows app 中,PasswordRevealMode 屬性會取代 IsPasswordRevealButtonEnabled 屬性,以便在不同裝置之間提供一致的行為。In Universal Windows apps, the PasswordRevealMode property replaces the IsPasswordRevealButtonEnabled property to provide consistent behavior across device families. 注意:在 Windows 10 之前,依預設不會顯示密碼顯示按鈕;在通用 Windows 應用程式中則預設為顯示。Caution: Prior to Windows 10, the password reveal button was not shown by default; in Universal Windows apps it is shown by default. 如果您 app 的安全性需要一律隱藏密碼,請務必將 PasswordRevealMode 設為 Hidden。If the security of your app requires that the password is always obscured, be sure to set PasswordRevealMode to Hidden.
Control.IsTextScaleFactorEnabledControl.IsTextScaleFactorEnabled Windows Phone 8.1 上提供的 IsTextScaleFactorEnabled 屬性現在已可供可跨所有裝置系列使用的通用 Windows app 使用。The IsTextScaleFactorEnabled property that was available on Windows Phone 8.1 is now available for Universal Windows apps across all device families.
AutoSuggestBoxAutoSuggestBox 來自 Windows Phone 8.1 的 AutoSuggestBox 控制項現在已可供可跨所有裝置系列使用的通用 Windows app 使用,而且您應該用它來取代 SearchBoxThe AutoSuggestBox control from Windows Phone 8.1 is now available for Universal Windows apps across all device families, and you should use it instead of SearchBox. AutoSuggestBox 會在使用者輸入時提供建議,而且可以和各種輸入類型 (例如觸控、鍵盤輸入及輸入法) 搭配使用。AutoSuggestBox provides suggestions as the user types, and works well with various input types, like touch, keyboard, and Input Method Editors. 它也擁有以下兩個新成員,可讓其更完美地以像搜尋方塊一樣的方式運作:QueryIcon 屬性與 QuerySubmitted 活動。It also has some new members to make it work better as a search box: the QueryIcon property and the QuerySubmitted event.
ContentDialogContentDialog 來自 Windows Phone 8.1 的 ContentDialog 控制項現在已可供可跨所有裝置系列使用的通用 Windows app 使用。The ContentDialog control from Windows Phone 8.1 is now available for Universal Windows apps across all device families. ContentDialog 可讓您顯示可自訂的強制回應對話方塊,此對話方塊可在各種裝置上完美地運作。ContentDialog lets you display a customizable modal dialog that works great across the full spectrum of devices.
樞紐分析Pivot 來自 Windows Phone 8.1 的 Pivot 控制項現在已可供可跨所有裝置系列使用的通用 Windows app 使用。The Pivot control from Windows Phone 8.1 is now available for Universal Windows apps across all device families. 您現在可以在您針對行動裝置與桌面裝置設計的 app 中使用相同的 Pivot 控制項。You can now use the same Pivot control for in your app for mobile and desktop devices. Pivot 提供可依據螢幕尺寸與輸入類型調整的行為。Pivot provides adaptive behavior based on the screen size and input type. 您可以設計 Pivot 控制項來提供標籤式行為,在每個樞紐分析項目中包含不同的資訊檢視。You can style a Pivot control to provide tab-like behavior, with different views of information in each pivot item.

TextText

功能Feature 說明Description
Windows 核心文字 APIWindows core text APIs 新的 Windows.UI.Text.Core 命名空間提供一個可將鍵盤輸入處理程序集中至單一伺服器的主從式系統。The new Windows.UI.Text.Core namespace features a client-server system that centralizes the processing of keyboard input into a single server. 您可以使用它來操作自訂文字輸入控制項的編輯緩衝區。You can use it to manipulate the edit buffer of your custom text input control. 文字輸入伺服器可確保文字輸入控制項的內容及其本身編輯緩衝區的內容,一律可透過應用程式與伺服器之間的非同步通訊通道保持同步。The text input server ensures that the contents of your text input control and the contents of its own edit buffer are always in sync, via an asynchronous communication channel between the app and the server.
向量圖示Vector icons Glyphs 元素具備新的 IsColorFontEnabledColorFontPalleteIndex 屬性以支援彩色字型;現在您可以使用字型檔來轉譯以字型為基礎的圖示。The Glyphs element has the new IsColorFontEnabled and ColorFontPalleteIndex properties to support color fonts; now you can use a font file to render font-based icons. 當您使用 ColorFontPalleteIndex 來執行調色盤切換時,可以使用不同的色彩集轉譯單一圖示;例如,顯示圖示的已啟用和已停用版本。When you use ColorFontPalleteIndex for color palette switching, a single icon can be rendered with different color sets; for example, to show an enabled and disabled version of the icon.
輸入法編輯器視窗事件Input Method Editor window events 使用者有時會透過在文字輸入方塊正下方的視窗中顯示的輸入法編輯器來輸入文字 (通常用於東亞語言)。Users sometimes enter text through an Input Method Editor that shows in a window just below a text input box (typically for East Asian languages). 您可以在 TextBoxRichEditBox 上使用 CandidateWindowBoundsChanged 活動與 DesiredCandidateWindowAlignment 屬性,來讓您的 app UI 與 IME 視窗更完美地搭配使用。You can use the CandidateWindowBoundsChanged event and DesiredCandidateWindowAlignment property on TextBox and RichEditBox to make your app UI work better with the IME window.
文字組合事件Text composition events TextBoxRichEditBox 有新的事件,可在使用輸入法編輯器撰寫文字時來通知您的應用程式:TextCompositionStarted、TextCompositionEnded 和 TextCompositionChanged。TextBox and RichEditBox have new events to inform your app when text is composed using an Input Method Editor: TextCompositionStarted, TextCompositionEnded, and TextCompositionChanged. 您可以處理這些事件,以協調您的應用程式程式碼與 IME 文字編譯程序。You can handle these events to coordinate your app code with the IME text composition process. 例如,您還可以為東亞語言實作內嵌的自動完成功能。For example, you could implement inline auto-completion functionality for East Asian languages.
改良的雙向文字處理Improved handling of bi-directional text XAML 文字控制項有新的 API 可改善雙向文字處理效能,使各種不同的輸入語言都能有更理想的文字對齊和段落方向性。XAML text controls have new API to improve handling of bi-directional text, resulting in better text alignment and paragraph directionality across a variety of input languages. TextReadingOrder 屬性的預設值已經變更為 DetectFromContent,所以已經預設啟用對偵測讀取順序的支援。The default value of the TextReadingOrder property has been changed to DetectFromContent, so support for detecting reading order is enabled by default. TextReadingOrder 屬性已經新增至 PasswordBox、RichEditBox 及 TextBox。The TextReadingOrder property has also been added to PasswordBox, RichEditBox, and TextBox. 您可以將文字控制項上的 TextAlignment 屬性設定為新的 DetectFromContent 值,以將其加入來獲得自動從內容偵測對齊狀況的功能。You can set the TextAlignment property on text controls to the new DetectFromContent value to opt-in to having alignment detected automatically from the content.
文字轉譯Text rendering 在 Windows 10 中,XAML app 中的文字目前在大多數的情況下能以幾近 Windows 8.1 的兩倍速度進行轉譯。In Windows 10, text in XAML apps now renders, in most situations, at nearly twice the speed of Windows 8.1. 在大部分的情況下,您的 app 不需要任何變更即可受益於這項改良功能。In most cases, your apps will benefit from this improvement without any changes. 除了更快的轉譯速度外,這些改進功能也可將 XAML app 的一般記憶體使用量降低 5%。In addition to faster rendering, these improvements also reduce typical memory consumption of XAML apps by 5%.

應用程式模型Application model

功能Feature 說明Description
CortanaCortana 使用可在外部應用程式中啟動及執行單一動作的語音命令,來延伸 Cortana 的基本功能。Extend the basic functionality of Cortana with voice commands that launch and execute a single action in an external application. 透過整合您 App 的基本功能,以及透過提供中央進入點讓使用者能在不直接開啟您的 App 的情況下完成大部分工作,Cortana 可以成為您的 App 與使用者之間的連絡橋樑。By integrating the basic functionality of your app, and by providing a central entry point for the user to accomplish most of the tasks without opening your app directly, Cortana can act as a liaison between your app and the user. 在多數情況下,這可以為使用者節省很多時間和精力。In many cases, this can save the user significant time and effort. 了解如何將您的 App 整合到 Cortana 畫布中Learn how to integrate your app into the Cortana canvas. 如果您需要一些想法,您可以參考 Universal Windows app 設計基本知識中,Cortana 特定的設計建議與 UX 指導方針。If you need ideas you can refer to the design recommendations and UX guidelines specific to Cortana in Design basics for Universal Windows apps.
檔案總管File Explorer 新的 Windows.System.Launcher.LaunchFolderAsync 方法可讓您啟動 [檔案總管] 並顯示您指定的資料夾內容。The new Windows.System.Launcher.LaunchFolderAsync methods let you launch File Explorer and displays the contents of a folder that you specify.
共用存放裝置Shared storage 新的 Windows.ApplicationModel.DataTransfer.SharedStorageAccessManager 類別與其方法,可讓您在使用 URI 啟用啟動其他應用程式時,透過傳遞共用權杖來與另一個應用程式共用檔案。The new Windows.ApplicationModel.DataTransfer.SharedStorageAccessManager class and its methods let you share a file with another app by passing a sharing token when you launch the other app by using URI activation. 目標應用程式會兌換權杖,以取得來源應用程式的共用檔案。The target app redeems the token to get the file shared by the source app.
SettingsSettings 搭配 LaunchUriAsync 方法使用 ms-settings 通訊協定,顯示內建設定頁面。Display built-in settings pages by using the ms-settings protocol with the LaunchUriAsync method. 例如,下列程式碼會顯示 Wi-Fi 設定的頁面:bool result = await Launcher.LaunchUriAsync(new Uri("ms-settings://network/wifi"));For example, the following code displays the page of Wi-Fi settings: bool result = await Launcher.LaunchUriAsync(new Uri("ms-settings://network/wifi"));

如需您可以顯示之設定頁面的清單,請參閱如何使用 ms-settings 通訊協定顯示內建設定頁面For a list of the settings pages that you can display, see How to display built-in settings pages by using the ms-settings protocol.
App 間通訊App-to-App communication Windows 10 中新的 App 間通訊 API,讓 Windows 應用程式 (及 Windows Web 應用程式) 可以互相啟動並交換資料和檔案。New app-to-app communication APIs in Windows 10 make it possible for Windows applications (as well as Windows Web applications) to launch each other and exchange data and files. 使用這些新的 API,就能流暢地處理需要使用者使用多個應用程式的複雜工作。Using these new APIs, complex tasks that would have required the user to use multiple applications can now be handled seamlessly. 例如,您的應用程式可以啟動社交網路 app 來選擇一位連絡人,或啟動結帳應用程式來完成付款程序。For example, your app could launch a social networking app to choose a contact, or launch a checkout application to complete a payment process.
應用程式服務App services app 服務是 app 對 Windows 10 中的其他app 提供服務的一項途徑。An app service is a way for an app to provide services to other apps in Windows 10. app 服務會採用背景工作的形式執行。An app service takes the form of a background task. 前景應用程式可呼叫另一個 app 中的 app 服務,以在背景中執行工作。Foreground apps can call an app service in another app to perform tasks in the background. 如需應用程式服務 API 的參考資訊,請參閱 Windows.ApplicationModel.AppServiceFor reference information about the app service API, see Windows.ApplicationModel.AppService.
應用程式套件資訊清單App package manifest 針對新增、移除和變更之 Windows 10 內含元素的套件資訊清單結構描述參考更新。Updates to the package manifest schema reference for Windows 10 include elements that have been added, removed, and changed. 如需結構描述中所有元素、屬性和類型的參考資訊,請參閱元素階層See Element Hierarchy for reference info on all elements, attributes, and types in the schema.

裝置Devices

功能Feature 說明Description
Microsoft Surface HubMicrosoft Surface Hub Microsoft Surface Hub 是功能強大的小組共同作業裝置和大型螢幕平台,適用於從 Surface Hub 或是您已連接的裝置原生執行的通用 Windows app。The Microsoft Surface Hub is a powerful team collaboration device and a large-screen platform for Universal Windows apps that run natively from Surface Hub or from your connected device. 利用大型螢幕、觸控及手寫輸入,以及各種內建硬體 (例如攝影機與感應器) 的優點,針對您的商務特性設計及建立您自己的 App。Build your own apps, designed specifically for your business, that take advantage of the large screen, touch and ink input, and extensive onboard hardware like cameras and sensors.

請參考通用 Windows App 設計基本知識中 Surface Hub 特定的設計建議與 UX 指導方針。Have a look at the design recommendations and UX guidelines specific to Surface Hub in Design basics for Universal Windows apps. 這些文件說明通用 Windows App 的回應式設計技術。These docs explain responsive design techniques for Universal Windows apps.

如需支援公用的共用應用程式的相關詳細資料,請參閱 SharedModeSettingsFor detail on supporting communal shared apps, see SharedModeSettings. 如需新的 InkCanvas 控制項之手寫輸入與多點手寫輸入支援的相關詳細資料,請參閱 Windows.UI.Input.InkingWindows.UI.Input.Inking.CoreFor ink input and detail on support for multi-point inking on the new InkCanvas control, see Windows.UI.Input.Inking and Windows.UI.Input.Inking.Core. 如需如何處理感應器輸入的資訊,請參閱整合裝置、印表機以及感應器For handling sensor input, see Integrating devices, printers, and sensors.
位置Location Windows 10 導入了新方法 RequestAccessAsync,可以詢問使用者是否可存取其位置。Windows 10 introduces a new method to prompt the user for permission to access their location, RequestAccessAsync. 使用者可以使用 [設定] 應用程式中的 [位置隱私權設定] 來設定其位置資料的隱私權。The user sets the privacy of their location data with the location privacy settings in the Settings app. 您的應用程式只能在下列情況下存取使用者的位置:[此裝置的位置] 已開啟 (Windows 10 手機版不適用) ,位置服務設定 [位置] 已開啟,且 [選擇可以使用您的位置的應用程式] 底下,您的應用程式設為開啟。Your app can access the user's location only when: Location for this device is turned on (not applicable for Windows 10 for phones), the location services setting “Location” is on, and under Choose apps that can use your location, your app is set to on.

請務必先呼叫 RequestAccessAsync,才能存取使用者的位置。It's important to call RequestAccessAsync before accessing the user’s location. 此時,您的 app 必須在前景,且 RequestAccessAsync 必須是從 UI 執行緒呼叫。At that time, your app must be in the foreground and RequestAccessAsync must be called from the UI thread. 在使用者授與您的 app 存取其位置的權限之前,您的 app 將無法存取位置資料。Until the user grants your app permission to their location, your app can't access location data.
AllJoynAllJoyn Windows.Devices.AllJoyn Windows 執行階段命名空間引進了 Microsoft 的 AllJoyn 開放原始碼軟體架構和服務的實作。The Windows.Devices.AllJoyn Windows Runtime namespace introduces Microsoft's implementation of the AllJoyn open source software framework and services. 這些 API 可實現讓您的通用 Windows 裝置 app 參與 AllJoyn 所驅動的物聯網 (IoT) 案例中的其他裝置。These APIs make it possible for your Universal Windows device app to participate with other devices in AllJoyn-driven, Internet of Things (IoT) scenarios. 如需關於 AllJoyn C API 的詳細資料,請於 AllSeen 聯盟下載文件。For more details about the AllJoyn C APIs, download the documentation at The AllSeen Alliance. 使用此版本中包含的 AllJoynCodeGen 工具,以產生可用來啟用您裝置 App 中 AllJoyn 案例的 Windows 元件。Use the AllJoynCodeGen tool included in this release to generate a Windows component that you can use to enable AllJoyn scenarios in your device app.

注意: Windows 10 IoT 核心版現在已適用於新型的小型裝置,可讓您使用 Windows 和 Visual Studio 建立「物聯網」(IoT) 裝置。Note: Windows 10 IoT Core is now available for a new class of small devices, allowing you to create “Internet of Things” (IoT) devices using Windows and Visual Studio. 深入了解 Windows 開發人員中心上的 Windows IoTLearn more about Windows IoT on Windows Dev Center.
在行動裝置 (XAML) 上列印 APIPrinting APIs on mobile (XAML) 還有一組單一且整合的 API,可讓您跨裝置系列從您的 XAML 型 UWP 應用程式進行列印,包括行動裝置。There is a single, unified set of APIs that let you print from your XAML-based UWP apps across device families, including mobile devices. 您現在可以使用 Windows.Graphics.Printing 和 Windows.UI.Xaml.Printing 命名空間中熟悉的列印相關 API,將列印功能加入您的行動裝置應用程式。You can now add printing to your mobile app by using familiar printing-related APIs from the Windows.Graphics.Printing and Windows.UI.Xaml.Printing namespaces.
電池Battery Windows.Devices.Power 命名空間中的電池 API,可以讓應用程式清楚得知執行您應用程式之裝置所連接的任何電池。The battery APIs in the Windows.Devices.Power namespace let your app learn more about any batteries that are connected to the device that’s running your app. 建立電池物件以代表個別的電池控制器,或是所有電池控制器的彙總 (當由 FromIdAsyncAggregateBattery 個別建立時)。Create a Battery object to represent an individual battery controller or an aggregate of all battery controllers (when created by FromIdAsync or AggregateBattery, respectively). 使用 GetReport 方法傳回指示相對應電池的充電、容量及狀態的 BatteryReport 物件。Use the GetReport method to return a BatteryReport object that indicates the charge, capacity, and status of the corresponding batteries.
MIDI 裝置MIDI devices 新的 Windows.Devices.Midi 命名空間可以讓您建立與外部 MIDI 裝置通訊的 A=apps、可直接與 Microsoft GS MIDI 軟體合成器通訊的 App 與外部裝置,以及多個用戶端同時存取單一 MIDI 連接埠的案例。The new Windows.Devices.Midi namespace lets you create A=apps that can communicate with external MIDI devices, Apps and external devices that directly communicate with the Microsoft GS MIDI software synthesizer, and scenarios where multiple clients simultaneously access a single MIDI port.
自訂感應器支援Custom sensor support Windows.Devices.Sensors.Custom 命名空間可讓硬體開發人員定義新的自訂感應器類型,例如 CO2 感應器。The Windows.Devices.Sensors.Custom namespace allows hardware developers to define new custom sensor types, like a CO2 sensor.
主機卡模擬 (HCE)Host-based Card Emulation (HCE) 主機卡模擬可讓您實作在作業系統中裝載的 NFC 卡模擬服務,同時仍然能夠透過 NFC 無線電波與外部讀取器終端機通訊。Host card emulation enables you to implement NFC card emulation services hosted in the OS and still be able to communicate with the external reader terminal via NFC radio. 若要觸發背景工作以模擬透過 NFC 使用智慧卡,請使用 SmartCardTrigger 類別。To trigger a background task to emulate a smartcard via NFC, use the SmartCardTrigger class. SmartCardTriggerType 列舉中的 EmulatorHostApplicationActivated 值可讓您的 App 知道已經發生 HCE 事件。The EmulatorHostApplicationActivated value in the SmartCardTriggerType enum lets your app know that an HCE event has occurred.

圖形Graphics

功能Feature 說明Description
DirectXDirectX Windows 10 中的 DirectX 12 導入了下一版的 Microsoft Direct3D,也就是 DirectX 核心的 3D 圖形 API。DirectX 12 in Windows 10 introduces the next version of Microsoft Direct3D, the 3D graphics API at the heart of DirectX. Direct3D 12 圖形可支援低層級、類似主控台 API 的效率與效能。Direct3D 12 Graphics enables the efficiency and performance of a low-level, console-like API. Direct3D 12 速度較快,且比以往更有效率。Direct3D 12 is faster and more efficient than ever before. 它可支援更豐富的場景、更多的物件、更複雜的效果,並能夠充分使用現代化的圖形硬體。It enables richer scenes, more objects, more complex effects, and better use of modern graphics hardware.
SoftwareBitmapSourceSoftwareBitmapSource 在通用 Windows app 中,您可以使用新的 SoftwareBitmapSource 類型做為 XAML 影像來源。In Universal Windows apps, you can use the new SoftwareBitmapSource type as a XAML image source. 這可讓您將為編碼的影像傳至 XAML 架構以立即顯示於畫面上,而略過 XAML 架構所執行的影像解碼。This lets you pass un-encoded images to the XAML framework to be immediately displayed on screen, bypassing image decoding by the XAML framework. 您可以達到更快速的影像轉譯,例如,直接從相機轉譯低延遲相片、使用自訂影像解碼器、擷取來自 DirectX 表面的框架,或甚至從頭開始建立記憶體中的影像,並使用低延遲和低記憶體負荷直接在 XAML 中全部加以轉譯。You can achieve much faster image rendering, such as rendering low-lag photos directly from the camera, using custom image decoders, capturing frames from DirectX surfaces, or even creating in-memory images from scratch and rendering them all directly in XAML with low latency and low memory overhead.
透視相機Perspective Camera 在通用 Windows app 中,XAML 具有新的 Transform3D API,可讓您將透視轉換套用至 XAML 樹狀結構 (或場景),這會依據單一場景範圍轉換 (或觀景窗) 來轉換所有 XAML 子元素。In Universal Windows apps, XAML has a new Transform3D API that lets you apply perspective transforms to a XAML tree (or scene), which transforms all XAML child elements according to that single scene-wide transform (or camera). 您可以使用 MatrixTransform 和複雜的數學運算執行此作業,但 Transform3D 可大幅簡化此效果,同時支援要動畫呈現的效果。You could do this previously using MatrixTransform and complex math, but Transform3D greatly simplifies this effect, and also enables the effect to be animated. 如需詳細資訊,請參閱 UIElement.Transform3D 屬性、Transform3DCompositeTransform3DPerspectiveTransform3DFor more info, see the UIElement.Transform3D property, Transform3D, CompositeTransform3D, and PerspectiveTransform3D.

媒體Media

功能Feature 說明Description
HTTP 即時資料流HTTP Live Streaming 您可以使用新的 AdaptiveMediaSource 類別,將彈性視訊串流功能新增到您的應用程式。You can use the new AdaptiveMediaSource class to add adaptive video streaming capabilities to your apps. 將物件指向資料流資訊清單檔案,物件即會初始化。The object is initialized by pointing it to a streaming manifest file. 支援的資訊清單格式包括 HTTP 即時資料流 (HLS) 與透過 HTTP 的動態彈性資料流 (DASH)。Supported manifest formats include Http Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). 一旦物件繫結至 XAML 媒體元素,彈性播放隨即開始。Once the object is bound to a XAML media element, adaptive playback begins. 資料流的屬性 (例如可用、最小和最大位元速率) 可供查詢,並在適當情況下設定。Properties of the stream, such as the available, minimum, and maximum bitrates, can be queried and set where appropriate.
媒體基礎轉換 (MFT) 的媒體基礎轉碼視訊處理器 (XVP) 支援Media Foundation Transcode Video Processor (XVP) support for Media Foundation Transforms (MFTs) 使用媒體基礎轉換 (MFT) 的 Windows 應用程式現在可以使用媒體基礎轉碼視訊處理器 (XVP) 來轉換、縮放以及轉換原始視訊資料︰新的 MF_XVP_CALLER_ALLOCATES_OUTPUT 屬性支援對呼叫端配置紋理的輸出 (即使在 Microsoft DirectX 視訊加速 (DXVA) 模式中也支援)。Windows apps that use Media Foundation Transforms (MFTs) can now use the Media Foundation Transcode Video Processor (XVP) to convert, scale, and transform raw video data: The new MF_XVP_CALLER_ALLOCATES_OUTPUT attribute enables the output to caller-allocated textures even in Microsoft DirectX Video Acceleration (DXVA) mode. 新的 IMFVideoProcessorControl2 介面可讓您的應用程式啟用硬體效果、查詢支援的硬體效果,以及覆寫影片處理器所執行的旋轉作業。The new IMFVideoProcessorControl2 interface lets your app enable hardware effects, query for supported hardware effects, and override the rotation operation performed by the video processor.
轉碼Transcoding 新的 MediaProcessingTrigger API 可讓您的應用程式在背景工作中執行媒體轉碼,因此即使終止前景應用程式,轉碼作業仍然可以繼續執行。The new MediaProcessingTrigger API lets your app perform media transcoding in a background task, so your transcoding operations can continue even when your foreground app has been terminated.
MediaElement 媒體失敗事件MediaElement media failure events 在通用 Windows app 中,MediaElement 可播放包含多個串流的內容,即使其中一個串流發生解碼錯誤,只要媒體內容包含至少一個有效串流,便可繼續播放。In Universal Windows apps, the MediaElement will play content containing multiple streams even if there’s an error decoding one of the streams, as long as the media content contains at least one valid stream. 例如,如果包含音訊和視訊串流之內容中的視訊串流失敗,MediaElement 仍然會播放音訊串流。For example, if the video stream in a content containing an audio and a video stream fails, the MediaElement will still play the audio stream. PartialMediaFailureDetected 會通知您無法解碼串流中的一個串流。The PartialMediaFailureDetected notifies you that one of the streams within a stream could not be decoded. 它也可以讓您了解何種類型的串流失敗,讓您可在 UI 中反映該項資訊。It also lets you know what type of stream failed so that you can reflect that info in your UI. 如果媒體串流中的所有串流皆失敗,就會引發 MediaFailed 活動。If all of the streams within a media stream fail, the MediaFailed event is raised.
使用 MediaElement 的彈性視訊資料流的支援Support for adaptive video streaming with MediaElement MediaElement 具有新的 SetPlaybackSource 方法,以支援彈性影片串流。MediaElement has the new SetPlaybackSource method to support adaptive video streaming. 請使用此方法將您的媒體來源設定為 AdaptiveMediaSource。Use this method to set your media source to an AdaptiveMediaSource.
使用 MediaElement 和影像進行轉型Casting with MediaElement and Image MediaElement 與影像控制項具有新的 GetAsCastingSource 方法。The MediaElement and Image controls have the new GetAsCastingSource method. 您可以使用此方法,以程式設計方式將內容從任何媒體或影像元素傳送至更多樣化的遠端裝置,例如 Miracast、藍牙及 DLNA 等。You can use this method to programmatically send content from any media or image element to a broader range of remote devices, like Miracast, Bluetooth, and DLNA. 此功能會在您於 MediaElement 上將 AreTransportControlsEnabled 設為 true 時自動啟用。 This functionality is enabled automatically when you set AreTransportControlsEnabled to true on a MediaElement.
傳統型應用程式的媒體傳輸控制項Media transport controls for desktop apps ISystemMediaTransportControls 介面和相關的 API 可讓傳統型應用程式與內建系統媒體傳輸控制項互動。The ISystemMediaTransportControls interface and related APIs allow desktop apps to interact with the built-in system media transport controls. 這包括回應使用者與傳輸控制項按鈕的互動,以及更新傳輸控制項顯示畫面,以顯示與目前播放的媒體內容相關的中繼資料。This includes responding to user interactions with the transport control buttons, and updating the transport controls display to show metadata about currently playing media content.
隨機存取 JPEG 編碼和解碼Random-access JPEG encoding and decoding 新的 WIC 方法 IWICJpegFrameEncodeIWICJpegFrameDecode 可編碼和解碼 JPEG 影像。New WIC methods IWICJpegFrameEncode and IWICJpegFrameDecode enable the encoding and decoding of JPEG images. 現在,您也可以啟用影像資料的索引編製,以使用較大量的記憶體換取對大型影像有效率的隨機存取。You can also now enable indexing of the image data, which provides efficient random access to large images at the expense of a larger memory footprint.
媒體組合的重疊Overlays for media compositions 新的 MediaOverlayMediaOverlayLayer API 可以讓您輕鬆地將多層靜態或動態媒體內容新增到媒體組合。The new MediaOverlay and MediaOverlayLayer APIs make it easy to add multiple layers of static or dynamic media content to a media composition. 您可以對每個層級調整不透明度、位置和時間,甚至可以實作您自己為輸入層自訂的撰寫器。Opacity, position, and timing can be adjusted for each layer, and you can even implement your own custom compositor for input layers.
新的效果架構New effects framework Windows.Media.Effects 命名空間提供簡單且直覺的架構,可為音訊和影片串流新增效果。The Windows.Media.Effects namespace provides a simple and intuitive framework for adding effects to audio and video streams. 此架構包含可讓您實作以建立自訂音訊與視訊效果並將其插入到媒體管線中的基本介面。The framework includes basic interfaces that you can implement to create custom audio and video effects and insert them into the media pipeline.

網路功能Networking

功能Feature 說明Description
通訊端Sockets 通訊端更新包括:Socket updates include:

通訊端代理程式: 通訊端代理程式可代表處於 App 生命週期中任何狀態的 App 建立及關閉通訊端連線。Socket broker: The socket broker can establish and close socket connections on behalf of an app in any state of the app lifecycle. 這會讓應用程式和它們所提供的服務更易於探索。This makes apps and the services that they provide more discoverable. 例如,透過通訊端代理程式,Win32 服務即使在未執行時,仍然可以接受連入的通訊端連線。For example, by way of the socket broker, a Win32 service can still accept incoming socket connections even when it’s not running.

輸送量改進: 通訊端輸送量已針對使用 Windows.Networking.Sockets 命名空間的應用程式最佳化。Throughput improvements: Socket throughput has been optimized for apps that use the Windows.Networking.Sockets namespace.
背景傳輸的後續處理工作Background Transfer post-processing tasks Windows.Networking.BackgroundTransfer 命名空間中新的 API 可讓您註冊後續處理工作的群組。New APIs in the Windows.Networking.BackgroundTransfer namespace let you register groups of post-processing tasks. 因此,即使您的應用程式不在前景,也可在背景傳輸成功或失敗時立即採取動作,而不是等到下次使用者繼續執行應用程式時才採取動作。So your app can act on the success or failure of background transfers immediately, even if it’s not in the foreground, instead of waiting for the next time the user resumes the app.
藍牙對廣告的支援Bluetooth support for advertisements 有了 Windows.Devices.Bluetooth.Advertisement 命名空間,您的應用程式即可以傳送、接收與篩選藍牙 LE 廣告。With the Windows.Devices.Bluetooth.Advertisement namespace, your apps can send, receive, and filter Bluetooth LE advertisements.
Wi-Fi Direct API 更新Wi-Fi Direct API update 裝置代理程式會進行更新,使裝置不需要離開應用程式即可配對。The device broker is updated to enable pairing with devices without leaving the app. Windows.Devices.WiFiDirect 命名空間的新增項目可讓裝置成為可供其他裝置搜尋的裝置,並讓裝置接聽連入連線通知。Additions to the Windows.Devices.WiFiDirect namespace also let a device make itself discoverable to other devices, and let it listen for incoming connection notifications.

注意: 在此版本中,Wi-Fi Direct 功能的改善並未內建於 UX 中,並且僅支援按鈕配對。Note: In this release, the Wi-Fi Direct feature improvements are not built into the UX, and they support only push-button pairing. 此外,此版本僅支援一個使用中連線。Also, this release supports only one active connection.
JSON 支援的改進JSON support improvements Windows.Data.Json 命名空間現在在偵錯工作階段期間轉換 JSON 物件時,對於現有的標準定義和開發人員體驗提供較好的支援。The Windows.Data.Json namespace now better supports existing standard definitions and the developer experience when converting JSON objects during debug sessions.

安全性Security

功能Feature 說明Description
ECC 加密ECC encryption Windows.Security.Cryptography 命名空間中的新 API 可支援橢圓曲線密碼編譯 (ECC),這是以有限欄位的橢圓曲線為基礎的公開金鑰密碼編譯實作。New APIs in the Windows.Security.Cryptography namespace provide support for Elliptical Curve Cryptography (ECC), a public-key cryptography implementation based on elliptical curves over finite fields. ECC 的演算方式比 RSA 更複雜,所提供的金鑰較小、可降低記憶體使用量,並改善效能。ECC is mathematically more complex than RSA, provides smaller key sizes, reduces memory consumption, and improves performance. 它可為 Microsoft 服務和客戶提供 RSA 金鑰與 NIST 核准之曲線參數的替代方法。It offers Microsoft services and customers an alternative to RSA keys and NIST-approved curve parameters.
Microsoft PassportMicrosoft Passport Microsoft Passport 是一種使用非對稱式密碼編譯和手勢來取代密碼的替代驗證方法。Microsoft Passport is an alternative method of authentication that replaces passwords with asymmetric cryptography and a gesture. Credentials 命名空間內的類別 (例如 KeyCredentialManger) 可以讓開發人員更輕鬆地使用 Microsoft Passport,而不需要複雜的加密或生物特徵。Classes in the Credentials namespace, such as KeyCredentialManger, make it easy for developers to create application using Microsoft Passport without the complexity of cryptography or biometrics.
Microsoft Passport for WorkMicrosoft Passport for Work Microsoft Passport for Work 是一種登入 Windows 的替代方法,它會使用您未使用密碼、智慧卡和虛擬智慧卡的 Active Directory 帳戶。Microsoft Passport for Work is an alternative method for signing in Windows using your Azure Active Directory account that does not use passwords, smart card, and Virtual Smart Cards. 您可以選擇要停用還是啟用此原則設定。You can choose whether to disable or enable this policy setting.
權杖代理人Token Broker 權杖代理人是一種新的驗證架構,可讓應用程式輕易地連接到線上身分識別提供者 (如 Facebook)。Token Broker is a new authentication framework that makes it easier for apps to connect to online identity providers (like Facebook). 諸如帳戶使用者名稱和密碼管理和精簡型 UI 等功能,可大幅改善使用者的驗證經驗。Features such as account username and password management and a streamlined UI provide a greatly improved authentication experience for users.

系統服務System services

功能Feature 說明Description
電源Power 現在,在啟用或停用省電模式時,您的 Windows 傳統型應用程式將可收到通知。Your Windows desktop application can now be notified when battery saver is engaged or disengaged. 藉由回應變動的電力情況,您的應用程式有機會延長電池使用時間。By responding to changing power conditions, your application has the opportunity to help extend battery life.

GUID_POWER_SAVING_STATUS:使用這個新的 GUID 與 PowerSettingRegisterNotification 函數,即可在執行或停止執行省電模式時收到通知。GUID_POWER_SAVING_STATUS: Use this new GUID with the PowerSettingRegisterNotification function to be notified when battery saver is engaged or disengaged.

SYSTEM_POWER_STATUS:此結構已更新,以支援省電模式。SYSTEM_POWER_STATUS: This structure has been updated to support battery saver. 第四個成員 SystemStatusFlag (先前名為 Reserved1) 現在可指出省電模式是否已啟用。The fourth member, SystemStatusFlag (previously named Reserved1, now indicates if battery saver is engaged or not. 使用 GetSystemPowerStatus 函式來抓取這個結構的指標。Use the GetSystemPowerStatus function to retrieve a pointer to this structure.
版本Version 您可以使用 Version Helper 函式判斷作業系統版本。You can use the Version Helper functions to determine the version of the operating system. 針對 Windows 10,這些 Helper 函式包含新的函式 IsWindows10OrGreaterFor Windows 10, these helper functions include a new function, IsWindows10OrGreater. 當您想要判斷系統版本時,您應該使用 Helper 函數,而不是已過時的 GetVersionExGetVersion 函數。You should use the helper functions rather than the deprecated GetVersionEx and GetVersion functions when you want to determine the system version. 如需如何取得系統版本的相關詳細資訊,請參閱取得系統版本For more information about how to get the system version, see Getting the System Version.

如果您是使用已過時的 GetVersionExGetVersion 函數來取得 OSVERSIONINFOEXOSVERSIONINFO 結構中的版本資訊,請注意這些結構包含的版本號碼會從 6.3 (適用於 Windows 8.1 與 Windows Server 2012 R2) 增加到 10.0 (適用於 Windows 10)。If you do use the deprecated GetVersionEx or GetVersion function to get version information in an OSVERSIONINFOEX or OSVERSIONINFO structure, be aware that the version number that these structures contain increases from 6.3 for Windows 8.1 and Windows Server 2012 R2 to 10.0 for Windows 10. 如需作業系統版本號碼的相關詳細資訊,請參閱作業系統版本For more information about version numbers for the operating system, see Operating System Version.

在您的應用程式中,您也需要特別以 Windows 8.1 或 Windows 10 為目標,以取得這些利用 GetVersionExGetVersion 函數取得之版本的正確版本資訊。You also need to specifically target Windows 8.1 or Windows 10 in your application to get the correct version information for these versions with the GetVersionEx or GetVersion function. 如需如何讓您的應用程式以這些 Windows 版本為目標的相關資訊,請參閱讓您的應用程式以 Windows 為目標For information about how to target your application for these versions of Windows, see Targeting your application for Windows.
使用者資訊User information Windows.System 命名空間中新的 API 讓存取使用者相關資訊 (例如使用者名稱與帳戶圖片) 更加容易。New APIs in the Windows.System namespace make it easy to access information about a user, like their username and account picture. 它也可讓您回應登入和登出之類的使用者事件。It also provides the ability to respond to user events such as log-in and log-out.
記憶體管理和分析Memory management and profiling Windows.System 中記憶體分析 API 的支援已經延伸至所有平台,且已透過新的類別和函式加強其整體功能。Support for memory profiling API in Windows.System has been extended to all platforms, and their overall functionality has been enhanced with new classes and functions.

存放裝置Storage

功能Feature 說明Description
適用於 Windows Phone 的檔案搜尋 APIFile-search APIs available for Windows Phone 身為應用程式發佈者,您可以藉由在應用程式資訊清單中新增擴充功能,以登錄您的應用程式,使其與您發佈的其他應用程式共用存放裝置資料夾。As an app publisher, you can register your app to share a storage folder with other apps that you publish by adding extensions to the app manifest. 然後呼叫 Windows.Storage.ApplicationData.GetPublisherCacheFolder 方法取得共用的儲存位置。Then call the Windows.Storage.ApplicationData.GetPublisherCacheFolder method to get the shared storage location. Windows 執行階段應用程式的強式安全性模型通常會防止應用程式相互共用資料。The strong security model of Windows Runtime apps typically prevents apps from sharing data among themselves. 但是,以個別使用者為基礎,讓來自於相同發佈者的應用程式共用檔案和設定,可能會幫助。But it can be useful for apps from the same publisher to share files and settings on a per-user basis.

工具Tools

功能Feature 說明Description
Visual Studio 中的即時視覺化樹狀結構Live Visual Tree in Visual Studio Visual Studio 具有新的即時視覺化樹狀結構功能。Visual Studio has a new Live Visual Tree feature. 您可以在偵錯時使用此功能,以快速了解應用程式的視覺化樹狀結構的狀態,並探索元素屬性的設定方式。You can use it while debugging to quickly understand the state of your app’s visual tree, and discover how element properties were set. 它也可讓您在應用程式執行時變更屬性值,而可逕行調整和實驗而無需重新啟動。It also lets you change property values while your app is running, so you can tweak and experiment without having to re-launch.
追蹤記錄Trace logging 追蹤記錄是適用於使用者模式應用程式與核心模式驅動程式的新事件追蹤 API;它是建置在 Windows 事件追蹤 (ETW) 上。TraceLogging is a new event-tracing API for user-mode apps and kernel-mode drivers; it builds on Event Tracing for Windows (ETW). 這個 API 提供簡化的方式來檢測程式碼,並包括含有事件的結構化資料,而不需要個別的檢測資訊清單 XML 檔案。This API provides a simplified way to instrument code and include structured data with events without requiring a separate instrumentation manifest XML file. WinRT、.NET 和 C/C++ TraceLogging API 可用來服務不同的開發人員對象。WinRT, .NET, and C/C++ TraceLogging APIs are available to serve different developer audiences.

使用者體驗User Experience

功能Feature 說明Description
語音辨識Speech recognition 通用 Windows 平台現在可支援較長聽寫案例的連續語音辨識。Continuous speech recognition for long-form dictation scenarios is now supported by the Universal Windows Platform. 請在語音互動文件中了解如何啟用連續聽寫。See how to enable continuous dictation in the Speech interaction docs.
不同應用程式平台之間的拖放功能Drag-and-drop capabilities between different application platforms 新的 Windows.ApplicationModel.DataTransfer.DragDrop 命名空間將拖放功能帶入通用 Windows app。The new Windows.ApplicationModel.DataTransfer.DragDrop namespaces bring drag-and-drop functionality to Universal Windows apps. 之前,一般的傳統型程式拖放案例 (例如將資料夾中的文件拖曳到 Outlook 電子郵件訊息中以加入附件) 在通用 Windows app 是不可能的。Previously, common drag-and-drop scenarios for desktop programs—such as dragging a document from a folder into an Outlook email message to attach it—are not possible with Universal Windows apps. 使用這些新的 API,您的應用程式將可讓使用者輕鬆地在不同的通用 Windows app 與桌面之間移動資料。Using these new APIs, your app can let users easily move data between different Universal Windows apps and the desktop.

為了支援應用程式之間的拖放功能,下列新的 API 已新增至 XAML:ListViewBase.DragItemsCompleted;To support Drag and Drop between apps, these new APIs have been added to XAML: ListViewBase.DragItemsCompleted;
UIElement:CanDragDragStartingStartDragAsyncDropCompletedUIElement: CanDrag, DragStarting, StartDragAsync, DropCompleted;
DragOperationDeferralDragUIDragUIOverrideDragOperationDeferral, DragUI, DragUIOverride;
DragEventArgs:AcceptedOperationDataViewDragUIOverrideGetDeferralModifiersDragEventArgs: AcceptedOperation, DataView, DragUIOverride, GetDeferral, Modifiers;
DragItemsCompletedEventArgsDropCompletedEventArgsDragStartingEventArgsDragItemsCompletedEventArgs, DropCompletedEventArgs, DragStartingEventArgs
自訂視窗標題列Custom window title bars 針對適用於桌面裝置系列的 UWP app,您現在可以使用 ApplicationViewTitleBar 類別搭配 ApplicationView.TitleBar 屬性及 Window.SetTitleBar 方法,來使用您自己自訂的 XAML 內容取代預設的視窗標題列內容。For UWP apps for the desktop device family, you can now use the ApplicationViewTitleBar class with the ApplicationView.TitleBar property and Window.SetTitleBar method to replace the default Windows title bar content with your own custom XAML content. 您的 XAML 會被視為「系統色彩」,因此 Windows 將會處理輸入活動,而非處理您的 app。Your XAML is treated as "system chrome", so Windows will handle the input events instead of your app. 這表示使用者即使按一下您的自訂標題列內容,仍可拖曳視窗調整其大小。This means the user can still drag and resize the window, even when clicking on your custom title bar content.

網路Web

功能Feature 說明Description
Microsoft EdgeMicrosoft Edge Microsoft Edge 是專為 Windows 10 建置的全新預設瀏覽器。Microsoft Edge is the new default browser built for Windows 10. 如需更多資訊及 Microsoft Edge 中所包含之開發人員功能與標準的概觀,包括最新的 JavaScript 功能,請參閱 Microsoft Edge 開發人員指南For more information and an overview of the developer features and standards included in Microsoft Edge, including the latest JavaScript features, see The Microsoft Edge Developer Guide.
WebView 瀏覽WebView browsing WebView 控制項使用與新的 Microsoft Edge 瀏覽器相同的轉譯引擎。The WebView control uses the same rendering engine as the new Microsoft Edge browser. 這可提供最精確且符合標準的 HTML 轉譯模式。This provides the most accurate, standards-compliant mode of HTML rendering.
關閉執行緒 WebViewOff-thread WebView 您可以指定 WebView.ExecutionMode 來啟用在個別背景執行緒中處理及顯示 Web 內容的功能。You can specify a WebView.ExecutionMode to enable processing and display of web content on a separate background thread. 這可以改善某些特定情況下的效能。This can improve performance in certain, specific scenarios.
WebView.UnsupportedUriSchemeIdentified 事件WebView.UnsupportedUriSchemeIdentified event 新的 WebView.UnsupportedUriSchemeIdentified 活動可讓您決定您的 app 應如何使用不支援的 URI 配置。The new WebView.UnsupportedUriSchemeIdentified event lets you decide how your app should an unsupported URI scheme. 您可以處理此事件,讓您的應用程式針對不支援的 URI 配置提供自訂處理方式。You can handle this event to let your app provide custom handling of unsupported URI schemes. 對於 HTML WebView 控制項,請參閱 MSWebViewUnsupportedUriSchemeIdentified 活動。For the HTML WebView control, see the MSWebViewUnsupportedUriSchemeIdentified event.
WebView.NewWindowRequested 事件WebView.NewWindowRequested event 新的 WebView.NewWindowRequested 活動可讓您在 WebView 中的指令碼要求新瀏覽器視窗時回應。The new WebView.NewWindowRequested event lets you respond when a script in a WebView requests a new browser window. 對於 HTML WebView 控制項,請參閱 MSWebViewNewWindowRequested 活動。For the HTML WebView control, see the MSWebViewNewWindowRequested event.
WebView.PermissionRequested 事件WebView.PermissionRequested event 新的 WebView.PermissionRequested 活動可讓 WebView 內容利用豐富的新 HTML5 API,而 HTML5 API 則需要來自使用者的特殊使用權限,例如 geolocation。The new WebView.PermissionRequested event lets WebView content leverage rich new HTML5 APIs that require special permission from the user, like geolocation. 對於 HTML WebView 控制項,請參閱 MSWebViewPermissionRequested 活動。For the HTML WebView control, see the MSWebViewPermissionRequested event.
WebView.UnviewableContentIdentified 事件WebView.UnviewableContentIdentified event 新的 WebView.UnviewableContentIdentified 活動可讓您在 WebView 瀏覽至非網路內容 (如 PDF 檔案或 Office 文件) 時回應。The new WebView.UnviewableContentIdentified event lets you respond when the WebView is navigated to non-web content such as a PDF file or Office document. 對於 HTML WebView 控制項,請參閱 MSWebViewUnviewableContentIdentified 活動。For the HTML WebView controls, see the MSWebViewUnviewableContentIdentified event.
WebView.AddWebAllowedObject 方法WebView.AddWebAllowedObject method 您可以呼叫新的 WebView.AddWebAllowedObject 方法來將 WinRT 物件插入 XAML WebView,然後從該 WebView 中代管的受信任 JavaScript 呼叫其功能。You can call the new WebView.AddWebAllowedObject method to inject a WinRT object into a XAML WebView, and then call its functions from trusted JavaScript hosted in that WebView. 例如,網路內容可以透過要求其父項應用程式呼叫 ToastNotificationManager WinRT API 來顯示系統通知。For example, web content can show system notifications by requesting that its parent app call the ToastNotificationManager WinRT API. 對於 HTML WebView 控制項,請參閱 addWebAllowedObject 方法。For the HTML WebView control, see the addWebAllowedObject method.
WebView.ClearTemporaryWebDataAsync 方法WebView.ClearTemporaryWebDataAsync method 當使用者與 XAML WebView 內部的網路內容互動時,WebView 控制項會依據該使用者的工作階段來快取資料。When a user interacts with web content inside a XAML WebView, the WebView control caches data based on that user's session. 您可以呼叫新的 ClearTemporaryWebDataAsync 方法來清除此快取。You can call the new ClearTemporaryWebDataAsync method to clear this cache. 例如,您可以在一位使用者登出應用程式,而使另一位使用者無法存取先前工作階段的任何資料時,將快取清除。For example, you can clear the cache when one user logs out of the app so another user can’t access any data from the previous session.