//public ObservableCollection<ItemModelCollection> ItemsByInventory { get; set; } = new ObservableCollection<ItemModelCollection>(); public void GetFilteredItems(string type) { FilteredItems.Clear(); switch (type) { case "All": FilteredItems = filter.All(FilteredItems, AllItems); Title = "All Items"; //ItemsByInventory = filter.SortByInventory(FilteredItems, ItemsByInventory); break; case "Vault": FilteredItems = filter.Vault(FilteredItems, Member.VaultItems); Title = "Vault Items"; break; case "Equipped": FilteredItems = filter.Equipped(FilteredItems, Member); Title = "Equipped Items"; break; case "Armor": FilteredItems = filter.Armor(FilteredItems, AllItems); Title = "All Armor"; break; default: FilteredItems = filter.NotArmor(FilteredItems, AllItems, type); Title = type; break; } }