public void SearchItems(string seatchText) { if (seatchText == string.Empty) { PagerFirstPage(); return; } EventTypesItemsView = CollectionViewSource.GetDefaultView(EventTypesList); EventTypesItemsView.Refresh(); EventTypesItemsView.Filter = new Predicate <object>(o => FilterEventTypes(o as EventTypes, seatchText)); }
private void RefreshUI() { EventTypesItemsView = CollectionViewSource.GetDefaultView(EventTypesUI.EventTypes); EventTypesItemsView.Refresh(); PageInfoContent = PageNumberDisplay(); }