SyntaxEditor - Find All Using EditorSearchView

by Avatar Bill Henning (Actipro)
Friday, April 10, 2015 at 12:56pm

PostBannerSyntaxEditorDevNotes

In today's post, we'll show the optional Find All button that was recently added to the SyntaxEditor (WPF, Silverlight, and WinRT/XAML platforms) EditorSearchView control.

Feature Description

SyntaxEditor has always had the ability to perform "find all" searches programmatically, however we received feedback from numerous customers looking to add this to our EditorSearchView control so that their end users could also access it.

EditorSearchView

The EditorSearchView control seen above shows the new Find All button visible.  Note that it is not visible by default (the new EditorSearchView.IsFindAllButtonVisible property defaults to false) since unlike the other find and replace operations, there is no automatic UI change in the editor itself for a find all operation.  Instead, you need to display the results somehow, such as in a find results list.

FindResults

This screenshot shows an example find results list.  The full source code for this sort of setup is included in the samples that come with SyntaxEditor.

Summary

Providing the ability for your app's end users to find all instances of search text is certainly a handy addition.

The features described above are available in our latest WPF, Silverlight, and WinRT/XAML control versions and are available for use.

TaskDownload TaskLiveDemo TaskBuyNow

Actipro's WPF Controls

Over 100 UI controls for building beautiful Windows Presentation Foundation desktop apps.

Learn More

Over 100 UI controls for building beautiful Windows Presentation Foundation desktop apps.

Includes editors, docking windows, MDI, property grids, charts, tree controls, ribbons, gauges, themes, and much more.

Learn More Download Free Trial

Add Comment

Please log in to a validated account to post comments.