I was looking for the MVVM pattern, and now I'm trying to implement a small application based on it.
This application has a data set in which, surprisingly, some data is presented. Now I'm trying to add some grouping ability to it. I know how to write this in code (C # and XAML), but I wonder what layer I should put the responsible code on.
One part of me tells me that this should be in the view, because this is code specifically for this particular view. It is not general and serves one object: to group data.
On the other hand, I think I should process it in the ViewModel with the command. However, it feels like I'm polluting my ViewModel with specific view logic.
Any league you can shed on this?
source share