In my ViewModel, I have a ObservableCollection of Orders. Order model has statuses like started, finished, cancelled. I bind the collection to a ListView to display the orders and I want to color the row according to the status.
Would it be a good solution and not violate MVVM principles if I would write a value converter to do it? I would map the statuses to the colors and use that value converter when binding the color of a row.
I'm asking this question, because all examples of value converters are very primitive (changing the format of a DateTime and etc.) and my suggested value converter would contain several if statements or a switch.
Are there any other alternative ways to achieve my desired behavior?