diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-03-22 21:29:50 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-03-22 21:29:50 +0300 |
commit | bcbd312539a566bf0946bdd4660cfc34088e8c93 (patch) | |
tree | dc4a7fb263f92e4181e0811968a4ed5a028a62ae /Xamarin.PropertyEditing | |
parent | dff326669738ed1d01d6eca408d62c2474666273 (diff) |
[Core] Make resource filter search a contains instead of starts
Diffstat (limited to 'Xamarin.PropertyEditing')
-rw-r--r-- | Xamarin.PropertyEditing/ViewModels/ResourceSelectorViewModel.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing/ViewModels/ResourceSelectorViewModel.cs b/Xamarin.PropertyEditing/ViewModels/ResourceSelectorViewModel.cs index 22587f5..8bd6f2f 100644 --- a/Xamarin.PropertyEditing/ViewModels/ResourceSelectorViewModel.cs +++ b/Xamarin.PropertyEditing/ViewModels/ResourceSelectorViewModel.cs @@ -163,7 +163,7 @@ namespace Xamarin.PropertyEditing.ViewModels private bool ResourceFilter (object item) { var r = (Resource)item; - if (!String.IsNullOrWhiteSpace (FilterText) && !r.Name.StartsWith (FilterText, StringComparison.OrdinalIgnoreCase)) + if (!String.IsNullOrWhiteSpace (FilterText) && !r.Name.Contains (FilterText, StringComparison.OrdinalIgnoreCase)) return false; if (ShowOnlySystemResources && r.Source.IsLocal) return false; |