Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(WPF) How to keep GUI code from being a mess

I have a GUI that is going to do a lot of disparate tasks. I currently have these separated in a tab UI. The functionality that does all of the heavy lifting is split into separate classes, but what is left still looks like a mess. How do you organize the GUI functions in code so that everything is coherent? I'm working with WPF specifically, but general answers are also appreciated.

like image 414
Steve Avatar asked Dec 06 '22 06:12

Steve


1 Answers

You should have a look at the Model-View-ViewModel design pattern, which is perfect for writing clean GUI code, clearly separated from business logic.

like image 152
Thomas Levesque Avatar answered Dec 11 '22 08:12

Thomas Levesque