Display remote image

2 posts, 0 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Apr 2012

    Posted 19 Nov 2013 Link to this post

    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?
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 22 Nov 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top