I started work with RadCarousel recently, and I have 2 questions:
1) Is there a way to hide RadCarousel navigation panel ? (navigation panel screenshot attached)
2) How can i make the front Item always be selected?
Thanks for your help,
Harri.
5 Answers, 1 is accepted
Let me go straight to your questions:
1. In order to hide RadCarousel's navigation panel, you can set its property - VerticalScrollBarVisibility to "Disabled".
2. You can set Carousel's selected item like so:
I hope this helps.
Greetings,
Yoan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
1) Almost true. I used HorizontalScrollBarVisibility="Hidden", and that's what I wanted.
2)I think you did not understand me. What I want to do is to Bind SelectedItem to TopContainer. With Xaml Binding It does not work. I tried handel TopContainerChanged event, and in the eventhandler set the top container to be selected,
'private OnTopContainerChanged(object sender, RoutedEventArgs e)
{
if (sampleRadCarousel.SelectedItem !=
((sampleRadCarousel.Panel
as RadCarouselPanel).TopContainer as CarouselItem).DataContext)
{
sampleRadCarousel.SelectedItem =
((sampleRadCarousel.Panel
as RadCarouselPanel).TopContainer as CarouselItem).DataContext;
}
}'
but it crashes. (exception attached)
I also tried to do it manually, when I call LineLeft or LineRight set the selectedItem but it stops the animation of movement.
I'll be glad to find a solution,
Harri.
I have found the cause of the exception you get and it has been resolved right away. The fix will be available in our next internal build coming on Monday. Thus you should be able to work with the code you pasted below for the handler of TopContainerChanged event.
Thank you for reporting it. I have updated your telerik points accordingly.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
in case you have purchased a WPF Conrols license and have active subscription and support, you can update your WPF controls by going to your Telerik.com account Manage Products > Choosing your product > Download installer and other resources.
Still I was not able to find a WPF Controls license under efratr@tehila.gov.il and could locate a WPF trial only that was downloaded on February, 5th. Could you please let us know, if you are referring to the trial license or to a paid license that is under another telerik.com account?
Iva
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.