Example #1
0
        private void Default_Loaded(object sender, RoutedEventArgs e)
        {
            if (NavigationContext.QueryString.Count > 0)
            {
                Photo thePhoto = new Photo();
                thePhoto.Filename = NavigationContext.QueryString.Values.First();
                thePhoto.Image = Utils.GetImage(NavigationContext.QueryString.Values.First());

                this.DataContext = thePhoto;
            }
        }
        private void Default_Loaded(object sender, RoutedEventArgs e)
        {
            if (NavigationContext.QueryString.Count > 0)
            {
                Photo thePhoto = new Photo();
                thePhoto.Filename = NavigationContext.QueryString.Values.First();

                Uri imgURL = new Uri(NavigationContext.QueryString.Values.First());
                thePhoto.Image = new System.Windows.Media.Imaging.BitmapImage(imgURL);
            
                //thePhoto.Image = Utils.GetImage(NavigationContext.QueryString.Values.First());
                this.DataContext = thePhoto;

                //currentImgUri = imgURL;
                currentImgUri = Utils.imgUriList.ElementAt(0);
            }
        }