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

Simpler Examples Displaying Images

4 Answers 108 Views
LoopingList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Aaron
Top achievements
Rank 1
Aaron asked on 08 Jun 2011, 02:28 PM
Perhaps I'm over-thinking the issue but neither example in the VS 2010 samples for the LoopingList is, frankly, simple enough.

I need an example of binding the LoopingList to a list of images (the "column dot image" example using String.Format is confusing--what's the Dark/Light logic for?) that the user can select and show drilled-down information about an object the image represents. Specifically I need to see:

1. How the LoopingList is instantiated (the "out of the box" list please, not an overriden custom object)
2. Adding a collection of images to the List (I think these will be compiled "resource" images not "content" images but I'm not sure)
3. Handling a user gesture to "swipe" through the list (making it move)
4. How to handle user selecting a specific list item

The problem here is your sample has three column lists and (as far as I can tell) custom implementation of your own methods! For instance, I don't understand what the integer in the constructor is for in your "PictureDataSource." Is it the number of items in the list? The API reference just lists it as "count". Is it referencing the column position of the list itself in your "slot machine" layout? Also, The random objects--are they required to allow the loop to move?

Sorry to say the control use is anything but "rapid"!

4 Answers, 1 is accepted

Sort by
0
Aaron
Top achievements
Rank 1
answered on 08 Jun 2011, 06:15 PM
Anyone have any ideas?
0
Deyan
Telerik team
answered on 09 Jun 2011, 11:54 AM
Hello Aaron,

Please refer to the support ticket you have opened regarding the same topic.

I am posting the sample application attached in this support ticket here so that it is available publicly as a reference on building a simple LoopingList using a folder containing images.

Kind regards,
Deyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Lancelot
Top achievements
Rank 1
answered on 24 Sep 2011, 02:37 PM
hi,
I'm sorry if this is a stupid question, but how did you actually bind the images to the looping list? I see the images folder in the solution and the control in the xaml. I see how the property "binding" is invoked. Could you tell me what I would do after I drag and drop the control onto the surface, what steps do i need to take in order for me to get the images in my images folder into the looping list.

Thanks!
0
Deyan
Telerik team
answered on 28 Sep 2011, 07:01 AM
Hi Lancelot,

Thanks for writing and for your questions.

I suggest you thoroughly examine our examples related to RadLoopingList in the source code of our Demos Application. You can find a very useful example there (Horizontal looping) which exactly demonstrates what you are after - loading RadLoopingList with images.

In a few words: you need to create a data source and a specialized looping list item with a property that exposes the image you would like to load. You will also have to add the images you need in your project either as resources or as content and reference them by URI.

I hope this helps.

Kind regards,
Deyan
the Telerik team

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

Tags
LoopingList
Asked by
Aaron
Top achievements
Rank 1
Answers by
Aaron
Top achievements
Rank 1
Deyan
Telerik team
Lancelot
Top achievements
Rank 1
Share this question
or