Ejemplo n.º 1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            var imageId  = HttpUtility.UrlDecode(NavigationContext.QueryString["ImageId"]);
            var sourceId = HttpUtility.UrlDecode(NavigationContext.QueryString["SourceId"]);

            if (string.IsNullOrEmpty(imageId) || string.IsNullOrEmpty(sourceId))
            {
                return;
            }

            var results = await PhotoCollection.GetImageDetail(sourceId, imageId);

            ViewModel.ImageSource   = results.LargeImage;
            ViewModel.ImageMetadata = results.ImageMetadata;
            DataContext             = ViewModel;
        }