WPF Seach和突出显示文本 [英] Wpf seach and highlight text

查看:124
本文介绍了WPF Seach和突出显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在WPF Windows应用程序中实现搜索功能.在此应用程序中,我有一个TreeView控件,当用户单击任何TreeViewnode时,对应的Wpf用户控件将与数据一起显示在右侧.

我想实现搜索.用户可以在搜索"文本框中输入任何内容,并且应该在WPF用户控件的右侧突出显示.

我该如何实施?

非常感谢您的帮助.

I have to implement Search functionality in WPF windows application. In this application, I have a TreeView control where when the user clicks on any TreeViewnode corresponding Wpf user control will appear in right side with data.

I want to implement search. User can enter any thing into Search textbox and that should get highlighted in rightside WPF user control.

How can I implement that?

Your help is much appreciated.

推荐答案

您可以参考以下文章,这可能会对您有所帮助
在WPF呈现的页面上搜索并突出显示任何文本 [ ^ ]

注意:在该主题中将紧急"标记为不好,大多数人会忽略您的问题.它将吸引较少的帮助.
you can refer to following article, this might help
Search and highlight any text on WPF rendered page [^]

NOTE : Marking Urgent in the subject is not good, mostly ppl would ignore your question. It would attract less help.


这篇关于WPF Seach和突出显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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