Setting cursor property on carousel items?

2 posts, 0 answers
  1. Albert
    Albert avatar
    65 posts
    Member since:
    Aug 2008

    Posted 05 Apr 2010 Link to this post

    How?
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 08 Apr 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top