private void MediaCardLargeRoot_BindingContextChanged(object sender, System.EventArgs e) { MediaCardLarge thisObject = sender as MediaCardLarge; HLinkBase theHLink = thisObject.BindingContext as HLinkBase; if (theHLink != null) { this.AnchorImage.BindingContext = theHLink.HLinkGlyphItem; } }
private void MediaCardLargeRoot_BindingContextChanged(object sender, System.EventArgs e) { MediaCardLarge thisObject = sender as MediaCardLarge; HLinkMediaModel thisMedia; if (thisObject.BindingContext is null) { (sender as MediaCardLarge).BindingContext = new HLinkMediaModel(); } else { thisMedia = thisObject.BindingContext as HLinkMediaModel; if ((thisObject != null) && (thisMedia != null)) { thisObject.AnchorImage.BindingContext = thisMedia.DeRef.HomeImageHLink; } } }