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

Setting cursor property on carousel items?

1 Answer 41 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 05 Apr 2010, 08:07 AM
How?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 Apr 2010, 07:21 AM
Hi Albert,

Thanks for contacting us.
You can change cursor over RadCarousel's items using the MouseHover and MouseLeave events.
See the code below:
radCarouselItem1.MouseHover +=new EventHandler(imageItem_MouseHover);
radCarouselItem1.MouseLeave +=new EventHandler(imageItem_MouseLeave);                
....
//add the item into carousel
this.radCarousel1.Items.Add(radCarouselItem1);
......
void imageItem_MouseLeave(object sender, EventArgs e)
{
            Cursor = Cursors.Default;       
}
 
void imageItem_MouseHover(object sender, EventArgs e)
{
            Cursor = Cursors.Hand;       
}
Hope this helps.

Greetings,
Peter
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.
Tags
Carousel
Asked by
Albert
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or