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

Images from Isolated Storage

15 Answers 207 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.
Brian
Top achievements
Rank 1
Brian asked on 21 Nov 2011, 10:03 AM
Hi,

I have a need to display image from Isolated Storage.   The control seems to only want source strings that are part of the project folder structure (eg images/...).  

Is there a way to display images from Isolated Storage in the slide view control?

Is there was way to pass the control a list of image objects?

thanks,

15 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 23 Nov 2011, 10:37 AM
Hi Brian,

Thank you for contacting us and for your interest in RadControls for Windows Phone.

We are planning to extend the SlideViewPictureSource to provide built-in support for loading pictures from the Isolated Storage as well as to support ImageSource instances directly. We will implement this functionality for the next Service Pack release of the tools - expected within a month.

Please find attached a simple application that demonstrates how your scenario may be currently implemented. The ImageSource passed is loaded from an embedded image but you may plug the logic that loads images from the file system there.

I hope this helps. Let me know if I can assist you further.

Greetings,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Brian
Top achievements
Rank 1
answered on 28 Nov 2011, 07:03 AM
Georgi,

Thanks.  With the sample app I got things working.

Brian
0
Michael
Top achievements
Rank 1
answered on 19 Aug 2012, 07:11 PM
Was this ever added to the control?  I figured it out, just like the last guy, but just curious...
0
Kiril Stanoev
Telerik team
answered on 20 Aug 2012, 07:59 AM
Hello Michael,

As it turns out, this feature is not yet implemented in RadSlideView. Nevertheless, this is still in our ToDo list but I cannot commit its availability to a certain date or release. Let me know if you have further questions or comments regarding this topic.

All the best,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tiago
Top achievements
Rank 1
answered on 30 Jun 2013, 03:56 PM
I'm trying to do this, but it's not working for me, I got some error when running the sample.
0
Tiago
Top achievements
Rank 1
answered on 01 Jul 2013, 12:37 PM
Now it's working, but I have a lot of Images and take a long time to load. How can I load at background and add dinamically?
0
Deyan
Telerik team
answered on 02 Jul 2013, 07:20 AM
Hello Brian,

You don't need to load all images at once. You need to load only those which are to be visualized.

Otherwise you might consider using background workers?

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 >>
0
Tiago
Top achievements
Rank 1
answered on 03 Jul 2013, 01:06 PM
 My Applicattion shows a gallery of images like the native on windows phone, how can I achieve this? How can I add the images dinamically?
0
Deyan
Telerik team
answered on 08 Jul 2013, 06:56 AM
Hi Tiago,

You can simply create a source of business objects which contain the Uri of the image which is stored in the Isolated Storage of your application. When you bind RadSlideView to this source, you will load the images on demand and make sure you do not store any reference to them in your ViewModel so that they can be garbage collected when not needed anymore. The following code demonstrates how loading an image from the IsoStore is done:

public ImageSource ImageSource
{
     get
     {
          using (var sourceFile = _storage.OpenFile(isolatedStoragePath, FileMode.Open, FileAccess.Read))
          {
                  BitmapImage bm = new BitmapImage();
                  bm.SetSource(sourceFile);
                  return bm;
          }
     }
}


So you can put a similar property on your data item and use it in the DataTemplate in RadSlideView.

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 >>
0
Tiago
Top achievements
Rank 1
answered on 27 Jul 2013, 10:29 PM
Deyan,

Can you provide a sample? I can't figure out.
0
Todor
Telerik team
answered on 31 Jul 2013, 03:14 PM
Hi Tiago,

I have attached a sample. First click the AddImage button and select an image from the library, then go to the slide view page and see how the image are loaded one by one. You can use similar approach to display different images.

Regards,
Todor
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 >>
0
dev
Top achievements
Rank 1
answered on 01 Apr 2014, 09:00 AM
hello,
this example works with large images size?
0
dev
Top achievements
Rank 1
answered on 01 Apr 2014, 12:47 PM
your example with this image is very very slow and crashes

use this image:
https://dl.dropboxusercontent.com/u/26312884/2.jpg
0
Todor
Telerik team
answered on 02 Apr 2014, 08:01 AM
Hello,

Make sure that the size of the images that you use is optimized for phone.
Have a look at this article, which recommends usage of images up to 2000 x 2000 pixels.

Regards,
Todor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Vitalii
Top achievements
Rank 2
answered on 18 May 2014, 08:45 AM
I also had a similar problem with loading and using images. Moreover, there was a problem with memory leak (by default, in wp7, image.OnLoaded event was left unsubscribed after navigating from the page).
I tried several solutions, and i found this one: https://github.com/artem-zinnatullin/jet-image-loader Seems quite stable: i had no issues with it.
Tags
SlideView
Asked by
Brian
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Brian
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Tiago
Top achievements
Rank 1
Deyan
Telerik team
Todor
Telerik team
dev
Top achievements
Rank 1
Vitalii
Top achievements
Rank 2
Share this question
or