How do I display a document (rtf/doc/pdf/xps) in Silverlight? I need documentation in my app

安稳与你 提交于 2019-12-06 09:07:48

问题


This is a hard question to search for as "help" and "documentation" generates a lot of false hits. I basically want to show some simple documentation or help in my Silverlight app. And I don't want to write this in XAML, obviously, so I would love to be able to add a WordPad (or similar, free and easy) document to my app that would get display with some basic formatting in Silverlight.

Any ideas?


回答1:


Try embedding an iframe using an iframe overlay, then you can load any HTML-like content.

There is an excellent explanation of how to do this here: http://www.wintellect.com/cs/blogs/jlikness/archive/2010/09/19/hosting-html-in-silverlight-not-out-of-browser.aspx



来源:https://stackoverflow.com/questions/7916300/how-do-i-display-a-document-rtf-doc-pdf-xps-in-silverlight-i-need-documentati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!