Exemplo n.º 1
0
        public void SelectedHeroChanged(object sender, ItemClickEventArgs e)
        {
            Busy.SetBusy(true);

            SelectedHero = (e.ClickedItem) as Hero;

            SelectedHeroData = HeroRepository.GetHeroData(SelectedHero.Name.Replace(Constants.HeroString, string.Empty));
            SelectedHeroData.HeroFullImage = SelectedHero.FullImage;
            SelectedHeroData.AbilityList   = HeroRepository.GetHeroAbilityByHeroName(SelectedHero.Name.Replace(Constants.HeroString, string.Empty));

            NavigationService.Navigate(typeof(HeroDetail), SelectedHeroData, new SuppressNavigationTransitionInfo());
        }