Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.59 KB

webview_datatransferpackage.md

File metadata and controls

36 lines (23 loc) · 1.59 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.WebView.DataTransferPackage
winrt property

Windows.UI.Xaml.Controls.WebView.DataTransferPackage

-description

Note

DataTransferPackage may be altered or unavailable for releases after Windows 8.1. Instead, use CaptureSelectedContentToDataPackageAsync.

Gets a clipboard DataPackage as passed to the WebView.

-property-value

A clipboard data package.

-remarks

This property is typically used to support sharing. During a share operation, the source app puts the data being shared in a DataPackage object and sends that object to the target app for processing.

-examples

The following code example demonstrates how to use this property to implement sharing support.

[!code-cppDataTransferPackage]

[!code-csharpDataTransferPackage]

[!code-vbDataTransferPackage]

-see-also

XAML WebView control sample