public GameHeader GetCurrentGame() { CatalogBannerUC element = this._elements[1] as CatalogBannerUC; if (element != null) { return(element.CatalogBanner); } return(null); }
private static void OnCatalogBannerChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CatalogBannerUC catalogBannerUc = d as CatalogBannerUC; if (catalogBannerUc == null) { return; } // ISSUE: explicit reference operation GameHeader newValue = e.NewValue as GameHeader; if (newValue == null) { ImageLoader.SetUriSource(catalogBannerUc.imageBanner, ""); } else { ImageLoader.SetUriSource(catalogBannerUc.imageBanner, newValue.Game.banner_1120); } }