Hannsen
i want to assign the grades with the grade points how can i do that?
Have a look at https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.zip?view=net-8.0 maybe it is also suitable for you if you want to keep two value sources initially
59 replies
❔ How can I bind Fill Color to Enum Value?
Here is why: http://drwpf.com/blog/2009/03/17/tips-and-tricks-making-value-converters-more-accessible-in-markup/
40 replies
❔ How can I bind Fill Color to Enum Value?
But, if you would really like to keep the logic in the viewmodel. Then a way would be:
- Add another property "public string TesteValueColor" without the ObservableProperty annotation and just a getter.
- Put the color conversion into the getter of that property.
- Add the additional annotation [NotifyPropertyChangedFor(nameof(TesteValueColor))] to the TesteValue Enum property.
40 replies