Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.54 KB

datatransfermanager_showshareui_2106599435.md

File metadata and controls

31 lines (20 loc) · 1.54 KB
-api-id -api-type
M:Windows.ApplicationModel.DataTransfer.DataTransferManager.ShowShareUI(Windows.ApplicationModel.DataTransfer.ShareUIOptions)
winrt method

Windows.ApplicationModel.DataTransfer.DataTransferManager.ShowShareUI

-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.

-parameters

-param options

The options.

-remarks

We recommend that you provide the user a Share affordance only when there is something shareable in your app. The prominence of the affordance can vary based on the nature of the content. For example, if the user gets a high score in a game, you may wish to put a Share button next to the congratulatory message. A news app, on the other hand, may put a Share button in an AppBar.

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

-see-also

-examples

Display WinRT UI objects that depend on CoreWindow