SearchEdit Class |
Namespace: Jam.Shell.WPF.Controls
The SearchEdit type exposes the following members.
Name | Description | |
---|---|---|
SearchEdit | Default constructor. |
Name | Description | |
---|---|---|
AutoSearch | Gets or sets a value indicating whether the control will start searching automatically after a short delay or if the search needs to be triggered by pressing Enter. This is a dependency property. | |
FolderIdList | The ItemIdList to use for synchronization. | |
HasText | Gets or sets a value indicating whether this object currently contains any text. This is a dependency property. | |
HintColor | Gets or sets the color of the hint text and search symbol. This is a dependency property. | |
HintText | Gets or sets the hint text. This is a dependency property. | |
SearchFolderIdList | Gets the ItemIdList of the searchfolder. Enumerating contains the search result. | |
SearchScope | Gets or sets the search scope. This is a dependency property. | |
ShellControlConnector | Gets or sets a ShellControlConnector. |
Name | Description | |
---|---|---|
FolderChanged | Changes the displayed folder in all connected controls. | |
OnApplyTemplate | Is called when a control template is applied. (Overrides TextBoxBaseOnApplyTemplate.) | |
OnKeyDown |
Invoked whenever an unhandled KeyDown attached
routed event reaches an element derived from this class in its route. Implement this method
to add class handling for this event.
(Overrides TextBoxBaseOnKeyDown(KeyEventArgs).) | |
OnPropertyChanged |
Called when one or more of the dependency properties that exist on the element have had their
effective values changed.
(Overrides TextBoxOnPropertyChanged(DependencyPropertyChangedEventArgs).) | |
OnTextChanged | Is called when content in this editing control changes. (Overrides TextBoxBaseOnTextChanged(TextChangedEventArgs).) | |
SelectedFileChange | Changes the displayed file in all connected controls. |
Name | Description | |
---|---|---|
AutoSearchProperty |
Identifies the AutoSearch dependency property.
| |
FolderIdListProperty |
Identifies the FolderIdList dependency property.
| |
HasTextProperty |
Identifies the HasText dependency property.
| |
HintColorProperty |
Identifies the HintColor dependency property.
| |
HintTextProperty |
Identifies the HintText dependency property.
| |
SearchScopeProperty |
Identifies the SearchScope dependency property.
|
The search itself is done by Windows and supports the Advanced Query Syntax. The matching results are mapped to a virtual folder called "search folder".
The results of a search can be presented in either the ExplorerBrowser or a "Jam.Shell.WPF.Controls.Winforms.ShellListView" control. For this synchronize the FolderIdList dependency property with the Location or the ShellListView.FolderIdList property. They can be connected using a ShellControlConnector instance. In both cases an incoming value is interpreted as search scope; together with the search phrase the SearchEdit creates a new SearchFolder, an ItemIdList representing the search.
By default the search is triggered automatically a short period of time after the search text changes. This can be turned off using the AutoSearch property. If off, the search will only be triggered, pressing the Enter key.