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

Changing Size of Selected Carousel Items

1 Answer 152 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 2
Marc asked on 23 Dec 2008, 07:52 PM
Need to be pointed in the right direction.

I have a coursel with a simple oval path.  The selected item moves to the bottom/center of the oval, except the non-selected items are bigger than the selected item.  I would like to have the selected item become the bigger item, with the non-selected items smaller. 

How do I reverse this?  Appreciate any help.

Controls are awsome.

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 29 Dec 2008, 02:32 PM
Hello Marc,

Thank you for your question.

In order to simulate a 3D environment while rotating its items, the RadCarousel performs some calculations which are also based on your preferences. It consists of specifying the Z coordinate of each path point and ZScale value of the specified path. In other words, when you want your items to be scaled down when they are on the rear side (smaller Z) of the Carousel, you will have to specify the scale amount which is to be applied. There is a sample project in our Code Library which implements this behavior:

http://www.telerik.com/community/code-library/winforms/carousel/radcarousel-hi-res-image-gallery.aspx

Take a look at the CarouselPath property of the RadCarousel (and more precisely its ZScale sub-property). This value specifies how the item is scaled according to its position on the path. By adjusting this value you can set a different size of the foremost items in the Carousel. In this way you can also adjust the size of your items, so that they become bigger when they are selected, and smaller when they are not active.

I hope this helps.

All the best,
Author Deyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Carousel
Asked by
Marc
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Share this question
or