what is going on is your mixing view-first with viewmodel-first, and the mainviewmodel is the assigned context for both all DataContexts that are currently in your project so when you click on the Canvas the viewmodel that is currently be checked for OnMouseDown is the "MainViewModel", which of course doesn't exist, so it errors out.
Also, your helper file is missing...
Morgan.
Also, your helper file is missing...
Morgan.