// Called during a remove operation private void DetachFoto(Foto foto) { NotifyPropertyChanging("ReceiptFoto"); foto.ReceiptData = null; }
// Called during an add operation private void AttachFoto(Foto foto) { NotifyPropertyChanging("ReceiptFoto"); foto.ReceiptData = this; }