radcarousel wpf remove border around linked image

6 posts, 0 answers
  1. Edwin
    Edwin avatar
    8 posts
    Member since:
    Jan 2011

    Posted 24 Feb 2011 Link to this post

    How can i remove the border around the linked image.
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 25 Feb 2011 Link to this post

    Hi Edwin,

    Are you referring to the border that is displayed around all carousel items?


    All the best,
    Milan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Edwin
    Edwin avatar
    8 posts
    Member since:
    Jan 2011

    Posted 25 Feb 2011 Link to this post

    yes
  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 25 Feb 2011 Link to this post

    Hello Edwin,

    You can remove it by redefining the CarouselItem template as demonstrated here:

    <Style TargetType="telerik:CarouselItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="telerik:CarouselItem">
                    <Grid>
                        <ContentPresenter Content="{TemplateBinding Content}" 
                                          ContentTemplate="{TemplateBinding ContentTemplate}"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>



    All the best,
    Milan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  6. Dale
    Dale avatar
    1 posts
    Member since:
    Feb 2011

    Posted 01 May 2011 Link to this post

    I made the change you suggested to remove the border, but now I've lost the image reflection.  How do I just remove the border only and leave the rest of the styling in place?
  7. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 02 May 2011 Link to this post

    Hi Dale,

     

    In this case you have to edit the template of CarouselItem and modify the Border from there, please refer to the attached picture.  


    You may find attached sample project that demonstrates how this can be achieved. 


    Best wishes,
    Vanya Pavlova
    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
Back to Top
UI for WPF is Visual Studio 2017 Ready