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

Syncing RadCarousel's Tooltips

2 Answers 29 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 05 Dec 2013, 12:39 PM
Hello,

We have a custom User Control that presents custom tool icons in a RadCarousel.  The data items that are in an Observable collection and used as the Item source have a ToolTip property.  Is there an event that can be used to synchonize the Carousel's items to show that hint?

Thanks,

Reid

2 Answers, 1 is accepted

Sort by
0
Accepted
Yoan
Telerik team
answered on 06 Dec 2013, 02:22 PM
Hi Reid,

You can define style targeting CarouselItem and set its ToolTip like so:
<Style TargetType="telerik:CarouselItem">
           <Setter Property="ToolTipService.ToolTip">
               <Setter.Value>
                   <ToolTip>
                       <StackPanel>
                           <TextBlock Text="{Binding MyToolTip}"/>
                       </StackPanel>
                   </ToolTip>
               </Setter.Value>
           </Setter>
       </Style>


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Reid
Top achievements
Rank 2
answered on 06 Dec 2013, 05:27 PM
Thank you Yoan, that worked fine.
<Style TargetType="{x:Type telerik:CarouselItem}">     
                <Setter Property="ToolTip">
                    <Setter.Value>
                        <ToolTip>
                            <StackPanel>
                                <TextBlock Text="{Binding ToolTip.Content}"/>
                            </StackPanel>
                        </ToolTip>
                    </Setter.Value>
                </Setter>
            </Style>

Reid

Tags
Carousel
Asked by
Reid
Top achievements
Rank 2
Answers by
Yoan
Telerik team
Reid
Top achievements
Rank 2
Share this question
or