In my View, I have a button.
When the user clicks this button, I want to have the ViewModel save the context of the TextBlock in the database.
In your VM:
private DelegateCommand _saveCmd = new DelegateCommand(Save); public ICommand SaveCmd{ get{ return _saveCmd } } public void Save(string s) {...}
In you View, use CommandParameter like Matt's example.