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

How to: Tooltip on each slide image

1 Answer 71 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 27 Jul 2009, 09:08 AM
I need add tooltip for each slide image. How can I do this?

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 29 Jul 2009, 09:55 AM
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.
Tags
CoverFlow
Asked by
James
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or