private void PersonCardSmallRoot_BindingContextChanged(object sender, System.EventArgs e) { NoteCardFull card = (sender as NoteCardFull); if (card is null) { this.IsVisible = false; return; } Contract.Requires(BindingContext is HLinkNoteModel); HLinkNoteModel t = this.BindingContext as HLinkNoteModel; if (t is null) { this.IsVisible = false; return; } if (t.Valid) { this.IsVisible = true; } else { this.IsVisible = false; } }
private void NoteCardFullRoot_BindingContextChanged(object sender, System.EventArgs e) { NoteCardFull card = (sender as NoteCardFull); if (card is null) { this.IsVisible = false; return; } }