Windows Phone 8.1 Copy text to clipboard

I am creating a Windows Phone 8.1 XAML / C # application. I'm not quite sure how to copy text to the clipboard. Clipboard API is not supported. Has anyone come across such a scenario? If so, could you share an idea? This is one of the most requested features for my application. Please, help.

I tried using the DataPackage code as well as the Clipboard code only for the try. Both did not work. I know about the Silverlight platform support for the Clipboard APIs. But I believe that there should be a workaround. Otherwise, I will need to transfer the entire application to SL only for this function.

+4
source share
3 answers

As you mentioned, you tried DataPackage and Clipboard but did not work. Can you try the same code again by looking at the link below that provides basic information about DataPackage and CLipboard.

DataPackage and clipboard in XAML

Edit:

There is no 8.1 support in the clipboard. You must use Silverlight, but do not want to.

0
source

Try it,,

http://peterfoot.net/2014/04/30/clipboard-api-for-windows-phone-8-1/

This may be helpful.

Charming Share API 8.2014.4.301

Adds ready-made Share and Clipboard features to Windows Phone. Share more code across platforms. Create attractive applications for Windows Phone!

Go to the package manager console and install this library

PM > Install-Package InTheHand.ApplicationModel.DataTransfer -Version 8.2014.4.301

0

I talked with dev support, and it ended up with the clipboard API only available for Silverlight applications, not RT applications. Therefore, I removed this from the proposed feature set and relied entirely on SHARE data for third-party applications.

0
source

All Articles