简体   繁体   English

C#Windows Phone 8.1剪贴板支持

[英]C# Windows Phone 8.1 Clipboard support

I'm wondering if there is a copy to clipboard support in Windows Phone 8.1 我想知道Windows Phone 8.1中是否有复制到剪贴板支持

Here it says, there is no support (no date) and here it says there is (from June '14) 在这里它说,没有支持(没有日期), 在这里它说有(从14年6月)

However if I try to compile 但是,如果我尝试编译

Clipboard.SetText("myClipboard Text");

I only get a compiling error with a missing assembly reference for the namespace Clipboard 我只得到一个编译错误, missing assembly reference命名空间Clipboard missing assembly reference

Alternatively is there a workaround to still be able, putting text into the Clipboard ? 另外还有一种解决方法仍然能够将文本放入Clipboard吗?

Unfortunately, there's no clipboard API in Windows Runtime. 不幸的是,Windows运行时没有剪贴板API。 You can still use it, if you build Silverlight application, but as MSDN says there's no equalient of this API for Windows Runtime apps. 如果您构建Silverlight应用程序,您仍然可以使用它,但正如MSDN所说 ,Windows运行时应用程序的此API不相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM