/// <summary> /// This is called by the command. /// If the associated UI control does not support command binding then call this directly /// from the event handler in the code behind (this is why it's public not private) /// </summary> public void DoShowContactCommand(Contact pContact) { // Do action if (!isRefreshing) { ShowViewModel<ContactDetailViewModel>(pContact); } }
public void Init(Contact pContact) { this.Contact = pContact; }