使用VB .NET和Windows Phone获取其他应用程序共享的文本 [英] Get the text shared by other apps with VB .NET and Windows Phone
问题描述
我想知道如何在我的Windows Phone应用程序中简单地获取其他应用程序共享的文本和URI(如果可能的话,在VB .NET中) 。我只是打算得到它并保存它,我不想做几十件事,就是这样。有一个简单的方法吗?我尝试过的所有
都已经失败了,要么是因为他们在C#中(而且我不是很擅长C#),要么是因为它是我不想要的事情。如果有人可以帮忙...
I would like to know how I could simply get the text and URIs shared by other apps in my Windows Phone app (in VB .NET if possible). I just intend to get it and save it, I don't wantto make dozens of things, just that. Is there a simple way ? All the things I tried already failed, either because they were in C# (and I'm not very good at C#), or because it was doingthings I didn't want. If someone could helpme...
谢谢
推荐答案
不幸的是那里在vb.net中没有太多的例子。所以你可能不得不使用C#到VB.NET转换器
Unfortunately there are not much example in vb.net. So you may have to use C# to VB.NET Converter
http:/ /developerfusion.com/tools/convert/csharp-to-vb
一种方法是使用DataTransferManager在应用程序之间共享内容。
One way is to use DataTransferManager to share content between apps.
http://msdn.microsoft.com/en-us/library/ windows / apps / xaml / hh871372.aspx
您还可以使用NFC在应用程序之间共享文本。
You can also use NFC to share text between apps.
http://www.developer.com/ws/working-with-proximity- apis-in-windows-phone-8.html
Or if possible share the code you have done so far.
这篇关于使用VB .NET和Windows Phone获取其他应用程序共享的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!