How to: Tooltip on each slide image

2 posts, 0 answers
  1. James
    James avatar
    47 posts
    Member since:
    Jun 2009

    Posted 27 Jul 2009 Link to this post

    I need add tooltip for each slide image. How can I do this?
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 29 Jul 2009 Link to this post

    Hi James,

    If you define your items statically you can just set the ToolTipService.ToolTip attached property directly to the container (if you use directly images you can replace them with RadCoverFlowPerspectiveItems and set the property on them).

    If your items come as ItemsSource you could set this attached property through the ItemContainerStyle property of the CoverFlow like this:
     
    <navigation:RadCoverFlow.ItemContainerStyle> 
        <Style TargetType="navigation:RadCoverFlowPerspectiveItem"
            <Setter Property="ToolTipService.ToolTip" Value="ToolTip" /> 
        </Style> 
    </navigation:RadCoverFlow.ItemContainerStyle> 
     
    Unfortunately, Silverlight doesn't support binding in the style like WPF and because of that you can use this code only for a static ToolTip.

    If you need to bind your tooltip to some data you need to do something more complex. I would recommend you to implement attached behavior that will create the binding.

    Hope this information is helpful.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. DevCraft banner
Back to Top