VS2013 New View

Jan 17, 2014 at 9:43 PM
Edited Jan 17, 2014 at 9:43 PM
Am I missing something here, when I add a new MvvmView it always adds a Window instead of a UserControl. I've normally worked in VB so have had to add my own Views, but thought I'd create some templates in VB. So created a C# project and added a MvvmView to see exactly what was created. I wasn't expecting a Window !!

Jan 22, 2014 at 4:40 PM

I assume you talk about the WPF templates? If so, that is correct. The item templates in MVVM Light are not very complex. Their purpose is mostly educational.

Jan 22, 2014 at 5:54 PM
Hi Laurent

Yes I was. In my C# application if I add a new MvvmView (WPF) I was expecting to get a new UserControl with a bit of added Xaml (DataContext) and maybe a bit of code in the Class. I didn't understand why the Xaml looked OK, but the Class reads public partial class MvvmView4 : Window. If it's is supposed to be a Window OK, still don't understand why?

Thanks Stuart