youtube
youtube copied to clipboard
Avalonia - Help with grouped collections compiler problem.
First off, thanks for the great Avalonia series! I'm trying to reproduce the work you did with the expander menu for the channels, but I get an error here:
I see in the video that Rider gives you a warning about this (yellow squiggly) but I'm definitely getting an error. and when trying to compile:
I have the _channelConfigurations
defined exactly as you have, and the .GroupBy
is identical.
I'm really new to Avalonia (and MVVM in general) so I don't really know how to troubleshoot this. I did end up trying to just make a Dictionary<string,List<ChannelConfigurationItem>> but that led to its own issues while compiling.
Any help or a guidance on a direction to look at would be very appreciated. In case it matters, I'm using 11.0.0-preview5
(as where it looks like your project is using 11.0.0-preview1
) and .NET Core 7.0 instead of 6.0.
Sigh... and of course after hours of banging my head, I decide to make an issue and then immediately figure out its a problem with compiled bindings. and using {ReflectionBinding Key}
instead solves that particular problem :)