This is a migrated thread and some comments may be shown as answers.

Photo Gallery Sample Flickr Account

5 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gagan
Top achievements
Rank 1
Gagan asked on 22 Nov 2013, 08:31 AM
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?

5 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 22 Nov 2013, 09:18 AM
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.
0
Gagan
Top achievements
Rank 1
answered on 22 Nov 2013, 09:24 AM
Where in the source code is it accessing the different accounts? I'd like to change it and test it out.
0
Deyan
Telerik team
answered on 26 Nov 2013, 04:25 PM

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.
0
Gagan
Top achievements
Rank 1
answered on 05 Dec 2013, 07:44 AM
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.
0
Kiril Stanoev
Telerik team
answered on 09 Dec 2013, 02:43 PM
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.
Tags
General Discussions
Asked by
Gagan
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Gagan
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or