Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add text to Clipboard in Windows Phone Runtime?

previously in Windows Phone 8 we could use Clipboard to share text. It's supported in Windows 8,

Clipboard.SetContent(dataPackage);

But I see it is not supported for Windows Phone Runtime. Is it not possible anymore or there is another way to do that?

like image 256
user3646098 Avatar asked Jun 17 '14 12:06

user3646098


1 Answers

You pretty much answered your own question. Clipboard APIs are currently available only on Windows Phone Silverlight 8.0 and 8.1, and not on Windows Phone WinRT.

More info: Windows Phone 8.1 for Developers - Choose your Windows Phone XAML app model

EDIT: Migrating your Windows Phone 8 app to a Windows Runtime XAML app states that Clipboard is a "Windows Phone 8 feature for which there is no Windows Phone Store equivalent"

like image 133
Igor Ralic Avatar answered Oct 19 '22 20:10

Igor Ralic