Silverlight中FlowDocument的最佳替代品是什么? [英] What is the best substitute for FlowDocument in Silverlight?

查看:216
本文介绍了Silverlight中FlowDocument的最佳替代品是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将应用程序从 WPF 移植到 Silverlight ,并对阅读 FlowDocument支持的缺乏

I'm porting an application from WPF to Silverlight and was saddened to read of the lack of FlowDocument support.

什么是然后在Silverlight中显示带标记的文本的最佳方式是什么?

我只需要基础知识,例如

I just need the basics, e.g.


  • 粗体

  • italic

  • 超链接

  • 颜色

  • 字体大小

  • bold
  • italic
  • hyperlink
  • colors
  • font sizes

我不是指RichTextBox(如 Vectorlight演示)但是一种在应用程序表面上设置文本的方法,就像我在WPF中使用FlowDocument一样:

I don't mean a RichTextBox (as in the Vectorlight demo) but a way to format text on the application surface itself, like I can do with FlowDocument in WPF:

替代文字http://www.deviantsart.com/upload/qna172.png

推荐答案

在Silverlight 3中,Vectorlight的免费 RichTextBox 可以很好地处理您使用HTML所需的内容。

In Silverlight 3 Vectorlight's Free RichTextBox can do a pretty good job of what you need using HTML.

在Silverlight 4中,您可以选择使用RichTextBox代表您的内容。

In Silverlight 4 you have the option of using the RichTextBox to represent your content.

这篇关于Silverlight中FlowDocument的最佳替代品是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆