Windows-XAML / Template10

Making Windows 10 apps great again
Apache License 2.0
1.41k stars 389 forks source link

Using ViewModelBase from MVVMLight #131

Closed ghost closed 8 years ago

ghost commented 8 years ago

Great project! Is it possible to use the ViewModelBase of Template10 and the ViewModelBase of MVVMLight at the same time for ViewModels ? I'd like to have access to the nice superset of MVVMLight (RelayCommand, ...) and also the cool template of Template10 (OnNavigatedTo, ...)

qmatteoq commented 8 years ago

Actually you can just install MVVM Light and use the MVVM Light classes and helpers and keep using the Template10 ViewModelBase class. All the MVVM Light features (like RelayCommand, Messenger or DispatcherHelper) don't have a dependency on its ViewModelBase implementation, so you can use them in combination with the Template10 base class.

ghost commented 8 years ago

Perfect! Thank you so much :+1: