Windows.ApplicationModel.DataTransfer.DataTransferManager.ShowShareUI

March 10, 2022 · View on GitHub

-description

Programmatically initiates the user interface for sharing content with another app.

This API is for Universal Windows Platform (UWP) apps. The alternative API to use for a desktop app is described in Display WinRT UI objects that depend on CoreWindow.

-remarks

A DataPackage must have its Title set in order to be shared. Ensure Title is set before calling this method.

-examples

This example demonstrates how to call the ShowShareUI method to launch the Share user interface. Notice that this example only launches the interface— it does not add any content to share with another app.

[!code-jsDataTransferManager_3]

-see-also

Display WinRT UI objects that depend on CoreWindow