I'm using MVVM Light in a Windows Phone Silverlight application.
I don't really get how RaisePropertyChanged should works; Let me explain, in code like this
private Recipe _selectedRecipe;
public Recipe SelectedRecipe
{
get
{
return this._selectedRecipe;
}
set
{
this._selectedRecipe = value;
RaisePropertyChanged("SelectedRecipe");
}
}
What should happen when RaisePropertyChanged("SelectedRecipe") is called?
I expect the call to a new method with my code to execute, or something like that, but i can't be able to find something similar in (the few) examples i found. So, how it works?