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

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

问题描述

我正在将一个应用程序从 WPF 移植到 Silverlight 并且对
(来源:deviantsart.com)

解决方案

在 Silverlight 3 Vectorlight 的免费版 RichTextBox 可以很好地满足您使用 HTML 的需求.

在 Silverlight 4 中,您可以选择使用 RichTextBox 来表示您的内容.

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

What is the best way in Silverlight then to display text with markup?

I just need the basics, e.g.

  • bold
  • italic
  • hyperlink
  • colors
  • font sizes

Added:

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:


(source: deviantsart.com)

解决方案

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

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

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

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