What is the benefit of keeping code behind 'clean'?
Many times I come across posts here about someone trying to do the equivalent in XAML instead of code behind. Their only reason being they want to keep their code behind 'clean'. Correct me if I am wrong, but is not the case that:
InitializeComponent(); has to be run and the .g.i.cs file it is in contains a bunch of code though it may be hidden.Is it purely psychological? I suspect it is developers who come from a web background and like markup as opposed to code.
EDIT: I don't propose code behind instead of XAML - use both - I prefer to do my binding in XAML too - I am just against making every effort to avoid writing code behind esp in a WPF app - it should be a fusion of both to get the most out of it.