public GameHeader GetCurrentGame()
        {
            CatalogBannerUC element = this._elements[1] as CatalogBannerUC;

            if (element != null)
            {
                return(element.CatalogBanner);
            }
            return(null);
        }
Exemple #2
0
        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);
            }
        }