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

Display remote image

1 Answer 63 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 19 Nov 2013, 08:25 AM
Hello,

Does the radslideview support displaying remote images?  I've can properly display images which are added to my project however, when I try to display an image via URL, nothing ever shows up. 

I'm trying to do something like:

private List<ViewModel> itemsSource = new List<ViewModel>(1);

...

ViewModel model = new ViewModel();
model.Image = new Uri("http://pathtotheimage.somethihg.com/image.jpg", UriKind.Absolute);
this.itemsSource.Add(model);

this.slideView.DataContext = this.itemsSource;

Again, if I set my model.Image value to be a relativepath to an image that exists in my project it will display but I can't get it to show the remote image.  Any ideas?

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 22 Nov 2013, 08:07 AM
Hello Michael,

Thanks for writing and for your question.

This is a functionality that mostly depends on your data template and the correctness of the image URI provided in the business models.

Did you check your bindings? I see that you set the DataCOntext to the items source which, unless a XAML binding to the datacontext for the ItemsSource property is created, will not work as expected.

Please use the ItemsSource property of RadSlideView to attach it to your source instead of DataContext.

I hope this helps.

Regards,
Deyan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
SlideView
Asked by
Michael
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or