开发者

Can Silverlight copy a graphic from the clipboard?

Can a Silverlight application copy a graphic/b开发者_如何学Citmap from the clipboard? If so, how is this done?


AFAIK there is no direct support for Silverlight clipboard.

If you want clipboard access for text, then probably you need to look at this blog post by Jeff Wilcox

Silverlight manager though admits that there is no clipboard support


Currently there is no way to access image data from the clipboard. You would need to save the data on a clipboard to a file and then load the image from the file via OpenFileDialog.

With Silverlight 4 you make that process ever so slightly slicker by dragging the file onto your silverlight app.


Coming up in Silverlight 4 (hopefully the next beta) there is rumored to be support for image formats on the clipboard. Silverlight 4 supports text on the clipboard and I'm keeping my fngers crossed that it will extent to images by RTM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜