You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to learn how to use this lib, it seems to do what i need with filters and sort. On Avalonia UI.
After attaching a filter, you do you tell it that that the information the filter is based on has updated IF the obersable list has not changed?
let say.
[ObservableProperty]internalstringsearch=string.Empty;
public viewmodelconstructor(){varview=list.CreateView(x =>x);ItemsView=view.ToNotifyCollectionChanged(SynchronizationContextCollectionEventDispatcher.Current);view.AttachFilter(x =>x.Name!=null&&x.Name.Contains(Search,StringComparison.CurrentCultureIgnoreCase));}
Search is attached to the textbox and i want the displayed list to update as the user writes the search string rather than press a button.
If i use a button and attach the "AttachFilter" to a command, it will work, and i can do the same thing every time "search" string has changed, but not sure if thats the intended way of doing it.
The text was updated successfully, but these errors were encountered:
Im trying to learn how to use this lib, it seems to do what i need with filters and sort. On Avalonia UI.
After attaching a filter, you do you tell it that that the information the filter is based on has updated IF the obersable list has not changed?
let say.
Search is attached to the textbox and i want the displayed list to update as the user writes the search string rather than press a button.
If i use a button and attach the "AttachFilter" to a command, it will work, and i can do the same thing every time "search" string has changed, but not sure if thats the intended way of doing it.
The text was updated successfully, but these errors were encountered: