Being a Share Source
If your app contains data that is potentially worth sharing (above and beyond text that can be copied and pasted via normal gestures), it should be a share source. Most apps fall into this category. For example, games should enable the user to share a high score, news apps should enable the user to share an article, drawing apps should enable the user to share each creation, and so on.
You can be a share source without doing anything special to support the contract in the package manifest. You must provide a data package to the data package manager when requested. This involves handling a DataRequested
event as follows:
DataTransferManager dtm = DataTransferManager.GetForCurrentView(); dtm.DataRequested ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.