Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Edited Issue: Property Grid Filter behavior [21840]

$
0
0
According to http://wpftoolkit.codeplex.com/SourceControl/latest#Main/Source/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/PropertyGrid/Implementation/PropertyItemCollection.cs
the method "internal static Predicate<object> CreateFilter( string text ):" used in the property grid has the following line
"return property.DisplayName.ToLower().StartsWith( text.ToLower());"

Shouldn't this have Contains() instead of StartsWith()? For example we have a property called "My Cool Property". This will only work if we search "My". Shouldn't it work if we search "cool" as well?
If this is for some reason the intended behavior, is there an easy way to modify it for our needs?
Comments: ** Comment from web user: BoucherS **

Hi,

Thanks for pointing this out. Usually, we do a search for properties starting with a set of letters, but it could be interesting to search for properties containing the set of letters.
The fix will be included in v2.7.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>