RadCarousel Hi-Res Image Gallery

Thread is closed for posting
9 posts, 0 answers
  1. 63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 21 Aug 2008 Link to this post

    RadControls for WinForms version  Q2 2011              
    .NET version 2.0
    Visual Studio version 2008
    programming language C# and VB

    This example demonstrates how you can quickly and smoothly browse through local images using RadCarousel for WinForms. The application also showcases some of the performance features of RadCarousel for WinForms.

    Once the application is started, a Browse dialog appears (featuring RadDropDownList and RadButton for WinForms), asking the user to input a local folder with images. The images are then loaded in RadCarousel and can be previewed with a single click.

    Features of the application:
    • Load on demand - only the visible images are loaded in the Carousel, regardless of the amount of images stored in the local folder;
    • Image reflection - RadCarousel handles the reflection of all images for a nice and complete visual appearance of the application;
    • Thumbnail generation - proportional image thumbnails are created for just the images visible in the carousel - this way the carousel rotates scaled-down images with smaller size, rather than the original high-resolution images;
    • Zooming - clicking on the focused/center image smoothly expands the image to fit the parent RadForm and loads the image with its original quality;
    • Form Resize - when the form is resized, the image size is recalculated to fit the new size of the parent form;
    • Image types supported: JPG, JPEG, GIF, PNG, BNP

    RadCarousel thumbnails

    The Telerik Team
  2. 1DD5F96F-F241-4BEF-B706-167967A5ABC7
    1DD5F96F-F241-4BEF-B706-167967A5ABC7 avatar
    26 posts
    Member since:
    Mar 2008

    Posted 05 Dec 2009 Link to this post

    This project does not convert to a Visual Studio 2008 version.  Could you post a 2008 version?  I am not the only one who has had problems converting this project.  Please post an updated version.  Visual Studio 2010 is coming out soon.  Are you going to support this new version?
  3. 28F99208-1D78-419B-8A6D-3131BA462630
    28F99208-1D78-419B-8A6D-3131BA462630 avatar
    1765 posts
    Member since:
    Jan 2017

    Posted 08 Dec 2009 Link to this post

    Hi Larry,

    I converted project to VS 2008 with 1 error: "Project file is not writable." Even with that error present, the project converted successfully (see the conversion log: "Solution converted successfully" and Description="Converted"). Is this the error you saw?

    I have also attached the converted solution. Note that we have turned off the image reflection (see the code below) because currently there is a issue with it.
    radCarousel1.ItemReflectionPercentage = 0;

    We are working on this issue as we speak.

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. AA5435C6-EFA6-4D8A-B018-C1540C5ACA7D
    AA5435C6-EFA6-4D8A-B018-C1540C5ACA7D avatar
    2 posts
    Member since:
    Jul 2010

    Posted 02 Jul 2010 Link to this post

    I've downloaded this project example, but I cannot understand why it throws this error:

    Bounds cannot be changed while locked

    This happens when the visible items value is set lower then the image list strings discovered in the directory.

    I've read that I should use Invoke(), but I have no clue in wich method or how...

    Any suggestions??

  5. AA5435C6-EFA6-4D8A-B018-C1540C5ACA7D
    AA5435C6-EFA6-4D8A-B018-C1540C5ACA7D avatar
    2 posts
    Member since:
    Jul 2010

    Posted 02 Jul 2010 Link to this post

    Nevermind still reflection issue...

  6. E7DE7820-2865-4830-97D2-12FD99B80288
    E7DE7820-2865-4830-97D2-12FD99B80288 avatar
    5 posts
    Member since:
    Aug 2011

    Posted 23 Aug 2011 Link to this post

    I'm interested to know if you solved your problem. Could you upload your project please?


  7. 851AD9F5-5841-4848-A8EA-527FF0EFCD99
    851AD9F5-5841-4848-A8EA-527FF0EFCD99 avatar
    1061 posts
    Member since:
    Sep 2012

    Posted 26 Aug 2011 Link to this post

    Hello everyone,

    Thank you for writing.

    Actually, I am unable to reproduce the described exception in Akme's post. To run the sample properly the ItemReflectionPercentage property should be set to 0 as it was explained before:
    public GalleryView()
        //IMPORTANT! turn off the images reflection
        this.radCarousel1.ItemReflectionPercentage = 0;

    Keeping the above setting, specifying the lower visible items count works as expected:
    private void GalleryView_Shown(object sender, EventArgs e)
        this.radCarousel1.VisibleItemCount = 5;

    Martin Vasilev
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  8. BE51634A-EE02-4263-A749-7D541764C176
    BE51634A-EE02-4263-A749-7D541764C176 avatar
    5 posts
    Member since:
    Jun 2012

    Posted 13 Jun 2012 Link to this post

    hi everyone,
    this project workg good. but i have problem when i extend that with pre-defined Multitouch gestures. if the selected item is clicked,then object will be scaled bigger. in this situation  i want to use rotate and zoom gesture for the selectedItem. the rotate works perfect. i can zoom (pinch out/int) easily, but when i click this again for putting the item on the RadCarousel, the item would not be attached to RadCarousel anymore and the item is located somewhere. 
    i want to do following steps:
    1) click on selectedItem --> item scaled bigger (done)
    2) rotating  the object(done)
    3) pinch in/out(done)
    4) click again and return to the original position on the radcarousel(in this step if i use only rotate gesture works great, but when i use Zoom the item will be removed from radcarousel itemlist). 
    i'm appreciate if someone help me
    for Zooming:
            private void radCarousel1_ZoomGesture(object sender, ZoomGestureEventArgs e)
               button = (RadButtonElement)this.radCarousel1.SelectedItem;
                button.ScaleTransform = new SizeF(
                    (float)(button.ScaleTransform.Width * e.ZoomFactor),
                    (float)(button.ScaleTransform.Height * e.ZoomFactor));
    for rotating:
     private void radCarousel1_RotateGesture(object sender, RotateGestureEventArgs e)
                button.AngleTransform -= (float)(e.Angle * 180D / Math.PI);
  9. 080FE80A-E8C8-4050-8996-FA698BBA8A6C
    080FE80A-E8C8-4050-8996-FA698BBA8A6C avatar
    1160 posts
    Member since:
    Jul 2017

    Posted 18 Jun 2012 Link to this post

    Hello Garry,

    Please find the answer to your inquiry in the other thread, where you have asked the same questions: http://www.telerik.com/community/forums/winforms/carousel/radcarousel-doesn-t-support-touch-events.aspx

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.