Make RadCarouselPanel Path straight

8 posts, 1 answers
  1. Bob
    Bob avatar
    3 posts
    Member since:
    Aug 2010

    Posted 03 Aug 2010 Link to this post

    just wondering if its possible to modify the path to straight line? is there a way to edit the path?
  2. Answer
    Milan
    Admin
    Milan avatar
    1989 posts

    Posted 04 Aug 2010 Link to this post

    Hello Bob,

    You can use a path of your choosing - you just have to create the path by hand or with the help of Blend. For example:

    <Window.Resources>
        <Path
          x:Key="horizontalPath"
          Stretch="Fill"
          Opacity="1"
          Data="M 9,200 C9,200 450,200 450,200 "
          Stroke="#FFB4B4B4"
          StrokeThickness="1"/>
    </Window.Resources>
    <Grid>
        <telerik:RadCarousel Name="RadCarousel1" Loaded="RadCarousel1_Loaded">
            <telerik:RadCarousel.ItemsPanel>
                <ItemsPanelTemplate>
                    <telerik:RadCarouselPanel Path="{StaticResource horizontalPath}"/>
                </ItemsPanelTemplate>
            </telerik:RadCarousel.ItemsPanel>
        </telerik:RadCarousel>
    </Grid>


    Best wishes,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Bob
    Bob avatar
    3 posts
    Member since:
    Aug 2010

    Posted 05 Aug 2010 Link to this post

    hey thanks, that's what we needed!
  5. KOGAN
    KOGAN avatar
    4 posts
    Member since:
    Mar 2011

    Posted 27 Mar 2014 Link to this post

    It would be very nice to know how can I create straight path for Winforms radCarousel, similar to the path (and zoom effect) that is found in Demo application called "Music Library Demo"
  6. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 01 Apr 2014 Link to this post

    Hello Kogan,

    Please check Carousel Path help topic. If you have any additional questions please open a support ticket for RadCarousel for WinForms product.

    Regards,
    Yordanka
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  7. Shameel
    Shameel avatar
    15 posts
    Member since:
    Mar 2016

    Posted 17 Mar Link to this post

    Hi Milan,

    Whenever i used your Path code, the Flow Direction of item is changed(I mean changed RTL to LTR). I want to implement this with both English and Arabic.

    Any Suggestions?

     

  8. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    370 posts

    Posted 21 Mar Link to this post

    Hello Shameel,

    You can either specify a FlowDirection for the RadCarouselPanel or change the orientation of the path like this:

    Data="M 450,200 C450,200 9,200 9,200"

    Let me know if this solves your issue.

    Regards,
    Dilyan Traykov
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  9. Shameel
    Shameel avatar
    15 posts
    Member since:
    Mar 2016

    Posted 22 Mar in reply to Dilyan Traykov Link to this post

    Hi Dilyan Traykov,

    Currently i solved my issue using the below code for Path Property, The code is...
        <Path x:Key="horizontalPath" Stretch="Fill">
                            <Path.Data>
                                <LineGeometry StartPoint="300,200" EndPoint="20,200" />
                            </Path.Data>
                        </Path>

    I will try to implement your code also..

Back to Top
UI for WPF is Visual Studio 2017 Ready