Removing codebehind files from MVVM WPF projects

I am coding a WPF application using the MVVM pattern. I do not need to have codebehind files for my custom controls. What is the best way to delete these files gracefully?

I can create a user management class, then I can use this class for all of my views. (for more information: http://sondreb.com/blog/post/No-Code-Behind-for-MVVM.aspx )

Are there any alternative ways?

Thank.

+3
source share
2 answers

, InitializeComponent ( ). , , , - , , Blend, Visual Studio. "" " " .

, " " - , .

, , . 20% XALM, ().

, , Silverlight 4, .

MVVM . , , . , Caliburn.Micro IViewAware GetView.

+1

, , , .

. - , , , . ( , , , . , , .)

?

+5

Source: https://habr.com/ru/post/1757948/


All Articles