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

carrusel items

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oscar Rivera
Top achievements
Rank 2
Oscar Rivera asked on 05 Jun 2008, 06:23 PM
how can i do, for use the carrusel without scroll controls , i need that with the mouse move it and can select items and when i click a front item can open a rad window, or this item show me another carrusel o reload the same with others items.

i am a subscribed user but in the client.net i dont see the support for wpf controls.

please response me it is urgent for me, i need this.

fcibreiro@harweb.net

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 06 Jun 2008, 03:07 PM
Hi Oscar Rivera,

Currently the only way to hide the scrollbars is to define a new template like this:

<Grid>  
        <Grid.Resources>  
            <Style TargetType="{x:Type UI:CarouselItemsControl}">   
                <Setter Property="Template">   
                    <Setter.Value>  
                        <ControlTemplate TargetType="{x:Type UI:CarouselItemsControl}">   
                            <Border Background="{TemplateBinding Background}"  
                            BorderBrush="{TemplateBinding BorderBrush}"  
                            BorderThickness="{TemplateBinding BorderThickness}">   
                                <ScrollViewer CanContentScroll="True" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">   
                                    <ItemsPresenter x:Name="ItemsPresenter" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>   
                                </ScrollViewer>  
                            </Border>  
                        </ControlTemplate>  
                    </Setter.Value>  
                </Setter>  
            </Style>  
        </Grid.Resources>  
        <UI:RadCarousel x:Name="Carousel"/>   
</Grid>  

Now the scrollbars will be hidden, still you will be able to control the carousel with a mouse/keyboard.
Unfortunately the current beta version of RadCarousel does not have public properties or events that can allow you to easily access the selected item. The good news is that this functionality will be available in the next release. Thanks for your feedback!

All the best,
Milan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Oscar Rivera
Top achievements
Rank 2
Answers by
Milan
Telerik team
Share this question
or