Silverlight - 亮点列表>> TextBox 中的单词/短语的数量

发布于 2024-10-03 17:29:29 字数 378 浏览 2 评论 0原文

我是 Silverlight 新手,需要突出显示(或更改字体颜色)文本框中与单词/短语列表匹配的所有单词和短语。起初我以为这很容易,但我越研究它,我就越困惑。

我的目标是编写一些可重用的东西,以便稍后我也可以将逻辑应用到 RadGridView。我已经看到了一些接近我需要的东西的示例,但此时它超出了我的 Silverlight 水平。

我想自己写这篇文章,以便更好地了解 Silverlight 的一些内部机制是如何工作的。有人能指出我从哪里开始做这样的事情的正确方向吗?这应该在控件中实现吗?我应该使用一种行为吗?我正在使用 Silverlight 4。

一旦我知道从哪里开始,我相信我可以完成这项工作 - 当然,在你们的帮助下;-)

谢谢,

-Scott

I am new to Silverlight and have a requirement to highlight (or change font color) all words and phrases wtihin a TextBox that match a list of words/phrases. At first I though this would be easy, but the more I look into it, the more confused I get.

My goal is to write something reusable so I can also apply the logic to a RadGridView later. I've seen a few examples of stuff close to what I need, but it's beyond my Silverlight level at this point.

I want to write this myself to get a better understanding of how some of the Silverlight internals work. Can someone point me in the right direction of where to start on something like this? Should this be implemented in a control? Should I use a behavior? I'm using Silverlight 4.

Once I know where to start, I am sure I can get this done - with some help from you guys of course ;-)

Thanks,

-Scott

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以畏孤独 2024-10-10 17:29:29

使用 RadRichTextBox 怎么样(正如您提到的 RadGridView 一样,我假设您拥有它的许可证)?

Telerik 论坛 上还有一个很好的示例项目这正是你想做的事。

How about using the RadRichTextBox (I assume you have a licence for it as you mentionned the RadGridView)?

There's also a good sample project on Telerik forum that is doing exactly what you want to do.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文