How to do find and replace for RichTextBox of WPF. I have done it for windows forms RichTextBox
I want to know how to do开发者_开发技巧 find and replace for wpf RichTextBox
? I could not get the .Text
property of RichTextBox
in WPF. please help me.
Thanks Laxman
There is a forum post that shows how this is done here. You'd need to pass the RichTextBox.Document to the manager shown in that sample code.
There are open source projects like
https://github.com/keyoti/RapidFindReplaceWPF
http://www.codeproject.com/Articles/173509/A-Universal-WPF-Find-Replace-Dialog
精彩评论