Search found 4 matches
- 18 Jan 2023, 14:20
- Forum: General Discussion
- Replies: 6
- Views: 3520
Re: CollectionFilterBehavior example
I'm not getting how exactly I can bind it from C# side of it. Can you show example of TextPredicate? The ViewModel should expose a property with the filter predicate object: public class MyViewModel { public StringFilterPredicate TextPredicate { get; private set; } public string SearchText { get { ...
- 16 Jan 2023, 15:22
- Forum: General Discussion
- Replies: 6
- Views: 3520
Re: CollectionFilterBehavior example
Ok I've figured out how to use it, one question remained - how can I use it on HierarchicalDataTemplate to filter nested stuff?
- 13 Jan 2023, 21:05
- Forum: General Discussion
- Replies: 6
- Views: 3520
Re: CollectionFilterBehavior example
This is a simple xaml using the CollectionFilterBehavior: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:b="http://schemas.microsoft.com/xaml/behaviors" xmlns:noesis="clr-namespa...
- 13 Jan 2023, 13:01
- Forum: General Discussion
- Replies: 6
- Views: 3520
CollectionFilterBehavior example
Are there any examples on how to use CollectionFilterBehavior with custom struct/type?