Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

New Post: Review and thoughts on removing .xaml.cs for a view-model first approach

$
0
0
BladWise: I am sorry i didn't understand what you mean by "benefits of code-behind", for cases when you do need to reference view in your view-model, you could make use of attached behavior or make the view-model implement IViewAware. I do not see any reason why you would want to use code-behind .xaml.cs when the same could be done in a neater approach (with attached behavior/IViewAware).

The fact that .xaml.cs is a partial class make it already disfigured, removing .xaml.cs gives you a cleaner structure.

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>