Top "Mvvm-light" questions

The MVVM Light Toolkit is a set of components helping people to get started with the Model - View - ViewModel pattern in Silverlight, WPF, Xamarin, .NET Core and Windows Phone.

Cleanup vs Dispose(bool) in MVVM-light

In the latest version of MVVM-light (V3 SP1) both "Dispose()" and "Dispose(bool)" methods in ViewModel class are marked Do …

.net silverlight mvvm mvvm-light
How to run a function on a background thread for Windows Phone 7?

I'm using MVVM Light to build a WP7 (Windows Phone 7) application. I wish to have all the work performed by …

c# multithreading compact-framework windows-phone-7 mvvm-light
Page navigation through ViewModel using MVVMLight in windows 8

I just started developing my brand new windows 8 application last week using mvvm light.I am familiar with mvvmlight WP7 …

mvvm-light windows-8
How to reference a generic type in the DataType attribute of a DataTemplate?

I have a ViewModel defined like this: public class LocationTreeViewModel<TTree> : ObservableCollection<TTree>, INotifyPropertyChanged TTree : TreeBase&…

c# wpf xaml mvvm mvvm-light
The name ViewModelLocator does not exist in the namespace

I'm learning WPF with MVVM Light and i've an issue with my Portable Class Library. I follow this tutorial: http://…

wpf mvvm-light portable-class-library
CanExecute and CanExecuteChanged, I must implement these with a RelayCommand?

I am using MVVM-Light and i have my relay command working perfectly, I have just read that i should be …

mvvm mvvm-light relaycommand canexecute
MVVM Light: how to unregister Messenger

I love the MVVM Light's Messenger and its flexibility, however I'm experiencing memory leaks when I forget to explicitly unregister …

c# silverlight mvvm silverlight-4.0 mvvm-light
How do I modify ONLY the right (or left, top, bottom) value of a WPF control's Margin property?

This is quite easy to do from code-behind: var button = new Button(); var margin = button.Margin; margin.Right = 10; button.Margin = …

wpf xaml mvvm wpf-controls mvvm-light
Mvvm-Light Silverlight, using EventToCommand with a Combobox

I've hooked up a ComboBox's SelectedItemChangeEvent to a ICommand in my view model. Everything seems to be working fine however …

silverlight selecteditem mvvm-light
MVVM Light Messenger Class

Can anybody provide samples/links/simple-illustrations/videos/demos on how to use the messenger class in MVVM Light?

c# wpf mvvm-light