Photo Gallery Sample Flickr Account

6 posts, 0 answers
  1. Gagan
    Gagan avatar
    5 posts
    Member since:
    Sep 2012

    Posted 22 Nov 2013 Link to this post

    I was messing around with the photo gallery sample and was wondering if theres a way i can load up the photos on my flickr account?
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 22 Nov 2013 Link to this post

    Hi Gagan,

    By design the application shows public pictures from different accounts with different tags.

    You can freely use the source code and modify it according to your requirements though.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Gagan
    Gagan avatar
    5 posts
    Member since:
    Sep 2012

    Posted 22 Nov 2013 Link to this post

    Where in the source code is it accessing the different accounts? I'd like to change it and test it out.
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 26 Nov 2013 Link to this post

    Hello Gagan,

    You need to take a look at the FlickrServiceProvider class in the ServiceProviders folder.



    Regards,

    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. Gagan
    Gagan avatar
    5 posts
    Member since:
    Sep 2012

    Posted 05 Dec 2013 Link to this post

    I couldn't find much to change in the FlickrServiceProvider file.
    But I made the MainPage load up the AuthorPage at startup. And i replaced this.Author.Id with my author id.

    this.photoView.DataContext = App.Instance.CurrentImageServiceProvider.CreateAuthorPhotoList(this.Author.Id);
    this.galleriesView.DataContext = App.Instance.CurrentImageServiceProvider.CreateGalleryList(this.Author.Id);

    I also made the following modifications to the OnTapped methods
    private void OnGalleryTapped(object sender, EventArgs args)
    {
        App.Instance.SetCurrentViewModel<GalleryViewModel>(sender as GalleryViewModel);
        //this.NavigationService.Navigate(App.GalleryPage);
     
        var frame = App.Current.RootVisual as PhoneApplicationFrame;
        frame.Navigate(App.GalleryPage);
    }
     
    private void OnPhotoTapped(object sender, EventArgs e)
    {
        PhotoListViewModel photoList = this.photoView.DataContext as PhotoListViewModel;
        photoList.Photos.Apply<PhotoViewModel>((photo) => photo.Author = this.Author);
        App.Instance.SetCurrentViewModel<PhotoListViewModel>(photoList);
        //this.NavigationService.Navigate(App.PhotoPage);
     
        var frame = App.Current.RootVisual as PhoneApplicationFrame;
        frame.Navigate(App.PhotoPage);
    }

    It displays the picture successfully.
    However, its not displaying the photo count, authors picture or authors name.
    it only displays them when i search for the authors name or when i click the picture.

    I dont know what else to change.
  7. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 09 Dec 2013 Link to this post

    Hi Gagan,
    Could you please send us a sample project showing clearly what you're trying to achieve. This way we will be able to assist you better. Please make sure that the FlickR API is not developed and maintained by us so it might take us longer to provide you with a proper answer.

    Regards,
    Kiril Stanoev
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top
DevCraft banner