Class ModuleTreeViewFilter
Default search filter for the module tree view.
[Export(typeof(IModuleTreeViewFilter))]
public class ModuleTreeViewFilter : IModuleTreeViewFilter
- Inheritance
-
ModuleTreeViewFilter
- Implements
- Inherited Members
- Extension Methods
Methods
FilterModulesRecursively(string, IEnumerable<ModuleTreeItemViewModel>)
Filters the modules tree items recursively by setting their IsVisible depending on if the Name or the DeviceLabel contains the filterKey.
public void FilterModulesRecursively(string filterKey, IEnumerable<ModuleTreeItemViewModel> firstGeneration)
Parameters
filterKey
stringThe key for filtering.
firstGeneration
IEnumerable<ModuleTreeItemViewModel>The first generation to filter recursively.
Remarks
Export your own IModuleTreeViewFilter to change the filter handling.
Exceptions
- ArgumentNullException
Thrown when
firstGeneration
is null.