Hello, I'm trying to return a grouped observablecollection but all I get in my xaml is "MyProject.Model.KeyedList'2(|System.String.MyProject.model".
It doesn't seem to understand that it's data being sent.
app.xaml
myViewModel.xaml.cs
private CollectionViewSource catSorted; public ICollectionView CatSorted
{
get {
if (catSorted == null)
{
catSorted = new CollectionViewSource();
var GroupedCatsByDate = from c in cats.GetCats() group c by e.CatDate into groupedByDate
select new KeyedList
catSorted.Source = new ObservableCollection
}
return catSorted.View; }
}
Replies
Know the answer? Post it — somebody with the same question will find it here.