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

RAD Demo Carousel values

9 Answers 137 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
gozcelik
Top achievements
Rank 1
gozcelik asked on 19 Jan 2011, 03:25 PM
Hi,
I want to create a Carousel just like in the rad demo main application when i clicked any header from the left menu not in the any example of Carousel menu. (Open the demo, click the Carousel menu. You will see a Carousel with three images). I can't create a Carousel like that. Can you send me Center, U, V, initialangle, finalangle,zscale etc. values?
Thanks.

9 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 19 Jan 2011, 03:39 PM
Hello,

All the settings that you need should be included with the demo. You can open the demo as a Visual Studio soluton (either in VB or C#) on your own PC and explore all the code. You will fnd this (for exmaple) at:
C:\Program Files (x86)\Telerik\RadControls for WinForms Q3 2010\Examples and look for the correct solution file for your environment.

hope that helps
Richard
0
gozcelik
Top achievements
Rank 1
answered on 19 Jan 2011, 03:51 PM
Hi,
I've already opened the dem project in VS2005. But i can't find the MainForm's codes. There is a line "Application.Run(new MainForm());" in "program.cs". But i cant see the MainForm's codes. (It shows just metadata of MainForm).
0
Richard Slade
Top achievements
Rank 2
answered on 19 Jan 2011, 04:12 PM
Hello,

All settings should be in your solution. For exmaple, in the solution, under Carousel >> Image List >> Form1.vb you will find this code
Private Sub OnRadRadioPath_ToggleStateChanged(ByVal sender As Object, ByVal args As StateChangedEventArgs) Handles radRadioBezier.ToggleStateChanged
    Select Case Me.radRadioBezier.ToggleState
        Case ToggleState.On
            Dim carouselPath As New CarouselBezierPath()
            carouselPath.CtrlPoint1 = New Telerik.WinControls.UI.Point3D(125, 150, 400)
            carouselPath.CtrlPoint2 = New Telerik.WinControls.UI.Point3D(64, -80, -200)
            carouselPath.FirstPoint = New Telerik.WinControls.UI.Point3D(10, 10, -0)
            carouselPath.LastPoint = New Telerik.WinControls.UI.Point3D(19, 80, -100)
            carouselPath.ZScale = 200
            Me.radCarouselDemo.CarouselPath = carouselPath
        Case ToggleState.Off
            Dim ellipsePath As New CarouselEllipsePath()
            ellipsePath.Center = New Telerik.WinControls.UI.Point3D(50, 47, 0)
            ellipsePath.FinalAngle = 270
            ellipsePath.InitialAngle = 270
            ellipsePath.U = New Telerik.WinControls.UI.Point3D(31, -21, 0)
            ellipsePath.V = New Telerik.WinControls.UI.Point3D(0, 22, 200)
            ellipsePath.ZScale = 400
            Me.radCarouselDemo.CarouselPath = ellipsePath
    End Select
End Sub

Let me knowif you have further questions
Richard
0
gozcelik
Top achievements
Rank 1
answered on 19 Jan 2011, 04:24 PM
Thanks Mr. Slade, but i don't want the codes of "image list","music lib" or "carousel setting" examples.
Please open the demo, then just click the carousel button in the left menu. There is a craousel on the right big panel. There are three images in it. one of them is on the front and others in the back (%50 transparent). When you click the one item of that carousel, an example app. started.
I want to create a carousel like that. Only one image focused, others in the back and has the same distance from the focused one.
Please click this. I want to create a cr. Like this Carousel

Thank you.
0
gozcelik
Top achievements
Rank 1
answered on 21 Jan 2011, 08:27 AM
Any suggestion pls?
0
Richard Slade
Top achievements
Rank 2
answered on 21 Jan 2011, 08:47 AM
Hello,

The code for that particular one is not avaialble as far as I'm aware. I will try it on a project and let you know if I can find out
Richard
0
gozcelik
Top achievements
Rank 1
answered on 21 Jan 2011, 09:25 AM
Thank you Mr. Slade. I am waiting.
0
gozcelik
Top achievements
Rank 1
answered on 21 Jan 2011, 01:43 PM
I found finally:)
Here is the my solution:

I have three 200x200 images.
Center: 50;50;0
U: -30;0;0
V:0;25;100
InitialAngle: -155
FinalAngle: -165

You need to be change initial and final angles if the images have different values form 200x200

Thank you at all.
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 21 Jan 2011, 01:49 PM
Hello,

I'm glad you found your solution. I was putting together a sample for you, but you've beaten me to it.
All the best
Richard
Tags
Carousel
Asked by
gozcelik
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
gozcelik
Top achievements
Rank 1
Share this question
or