RAD Demo Carousel values

10 posts, 1 answers
  1. gozcelik
    gozcelik avatar
    6 posts
    Member since:
    Jul 2009

    Posted 19 Jan 2011 Link to this post

    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.

  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 19 Jan 2011 Link to this post

    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

  3. gozcelik
    gozcelik avatar
    6 posts
    Member since:
    Jul 2009

    Posted 19 Jan 2011 Link to this post

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

  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 19 Jan 2011 Link to this post

    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

  5. gozcelik
    gozcelik avatar
    6 posts
    Member since:
    Jul 2009

    Posted 19 Jan 2011 Link to this post

    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.

  6. gozcelik
    gozcelik avatar
    6 posts
    Member since:
    Jul 2009

    Posted 21 Jan 2011 Link to this post

    Any suggestion pls?

  7. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Jan 2011 Link to this post

    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

  8. gozcelik
    gozcelik avatar
    6 posts
    Member since:
    Jul 2009

    Posted 21 Jan 2011 Link to this post

    Thank you Mr. Slade. I am waiting.

  9. gozcelik
    gozcelik avatar
    6 posts
    Member since:
    Jul 2009

    Posted 21 Jan 2011 Link to this post

    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.

  10. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Jan 2011 Link to this post

    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

Back to Top