New to Telerik UI for WPFStart a free 30-day trial

Provides file / folder search in the windows file system.

Definition

Namespace:Telerik.Windows.Controls.FileSearch

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public interface IFileSearchProvider

Derived Classes: FileSearchProviderFileSearchProviderBase

Properties

Settings for customizing the search operation.

C#
SearchSettings SearchSettings { get; }

Methods

Cancels the current search asynchronously. Should be invoked when search string is changed.

C#
void CancelCurrentSearchAsync()

Searches for string pattern in the specified directory.

C#
void SearchAsync(string pattern, string dirPath)
Parameters:patternstringdirPathstring

Performs async search with background timer which supports fast changing of the search parameters. Suitable when typing the search string in a TextBox.

C#
void SearchAsyncWithTimer(string pattern, string dirPath)
Parameters:patternstringdirPathstring

Stops the current search operation and releases the resources.

C#
void StopSearch()

Events

Fires when search is completed automatically or by the user via cancellation.

C#
event EventHandler<FileSearchCompletedEventArgs> FileSearchCompleted

Fires when chunk (portion) of files is found.

C#
event EventHandler<FileSearchProgressChangedEventArgs> FileSearchProgressChanged