tag:blogger.com,1999:blog-7563089691408821967.post422889791154268689..comments2023-10-24T01:59:01.993+08:00Comments on Another Paradigm Shift: How To Search Text In WPF FlowDocument?Zhou Yonghttp://www.blogger.com/profile/14116780818653691348noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-7563089691408821967.post-37985003046471587502017-05-05T19:49:59.755+08:002017-05-05T19:49:59.755+08:00Great Job! Thank you. RichTextBox is very convenie...Great Job! Thank you. RichTextBox is very convenient (it has CaretPosition).<br />I tried to implement similar actions to FlowDocScrollViewer. I used something like<br /><br />id = range.Text.IndexOf(searchWhat, StringComparison.OrdinalIgnoreCase);<br />range.Start.GetPositionAtOffset(id);<br />var inlines = para.Inlines.ToArray();<br />inlines[0].ContentStart.GetCharacterRect(LogicalDirection.Forward).Top;<br />scroller.ScrollToVerticalOffset(offset + top);.<br /><br />It works but scrolling is very unstable.<br />FlowDocScrollViewer is good for its built in zooming. <br />Can you help with zooming content in a RichTextBox?<br />Thank you.Anonymoushttps://www.blogger.com/profile/04234362120620129183noreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-47273919214705839572015-04-02T11:46:34.236+08:002015-04-02T11:46:34.236+08:00Our open source project uses a similar technique, ...Our open source project uses a similar technique, if you need a filled out solution, take a look https://github.com/keyoti/RapidFindReplaceWPFAnonymoushttps://www.blogger.com/profile/03620932644338730572noreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-66255351306267746402014-02-15T07:06:19.140+08:002014-02-15T07:06:19.140+08:00WTF. Why isn't the TextFindEngine just a norma...WTF. Why isn't the TextFindEngine just a normal publicly accessible API? It's so damn fast and useful?!jason chenhttps://www.blogger.com/profile/01495403386104143184noreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-6960070346002656592013-03-05T21:25:31.074+08:002013-03-05T21:25:31.074+08:00Really its a grt article....can you please show ho...Really its a grt article....can you please show how to search previous text here?Renukanoreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-11037112629463644042011-07-13T02:25:30.398+08:002011-07-13T02:25:30.398+08:00Would not work if text is divided across multiple ...Would not work if text is divided across multiple runs.<br />Example:<br />You wouldn't be able to find the word Microsoft in the following structure.<br /><br /><Run>Micro</Run><Run>soft</Run>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-82834148992228132352011-07-13T02:23:55.489+08:002011-07-13T02:23:55.489+08:00Would not work if text is divided across multiple ...Would not work if text is divided across multiple runs.<br />Example:<br />You wouldn't be able to find the word Microsoft in the following structure.<br /><br />MicrosoftAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-78944966826171949232011-04-18T19:15:50.557+08:002011-04-18T19:15:50.557+08:00Thanks for this great work. Really helpful.Thanks for this great work. Really helpful.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-57350499205897820272010-10-28T22:59:01.849+08:002010-10-28T22:59:01.849+08:00I Can't access the attachment. A login page is...I Can't access the attachment. A login page is displayed when clicking the attachment link.Unknownhttps://www.blogger.com/profile/03458163537578530220noreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-77242997849821727242009-09-22T04:52:08.611+08:002009-09-22T04:52:08.611+08:00God bless you!!!
If I had only seen this article 6...God bless you!!!<br />If I had only seen this article 6 hours ago!Samnoreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-4236406661351324932008-11-13T01:28:00.000+08:002008-11-13T01:28:00.000+08:00Very usefulVery usefulAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7563089691408821967.post-73469202372372255632008-09-11T13:54:00.000+08:002008-09-11T13:54:00.000+08:00Great! Good technology article! 收藏!Great! Good technology article! 收藏!Kira Qianhttps://www.blogger.com/profile/05109698107212313192noreply@blogger.com