Simpler Examples Displaying Images

5 posts, 0 answers
  1. Aaron
    Aaron avatar
    2 posts
    Member since:
    May 2011

    Posted 08 Jun 2011 Link to this post

    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"!

  2. Aaron
    Aaron avatar
    2 posts
    Member since:
    May 2011

    Posted 08 Jun 2011 Link to this post

    Anyone have any ideas?
  3. DevCraft banner
  4. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 09 Jun 2011 Link to this post

    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>>
  5. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 24 Sep 2011 Link to this post

    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!
  6. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 28 Sep 2011 Link to this post

    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 >>

Back to Top
DevCraft banner