Windows.UI.Xaml.Controls.WebView.DataTransferPackage

June 11, 2020 · View on GitHub

-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