WPF: How to make multi-state button in an MVVM Application

Hello community,

WPF has really a steep learning curve, and I need to cry for help all the time. Sorry for that. Maybe someone knows how I can make a control to cycle through all the possible constants of an enum by clicking. I found some infos, but they seem to break the MVVM pattern (using MVVM Light), since they suggest CustomControls. What would your approach be? Should I investigate UserControls? Do you happen to know a very basic intro that (taking the MVVM Pattern into account). Or isn’t sticking to MVVM worth the trouble, and I should just give it up for that particular control.

Thanks

submitted by /u/drehwurm
[link] [comments]

Leave a Reply