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

RadButton can't use TooltipService.Tooltip?

3 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
tungnt185
Top achievements
Rank 2
tungnt185 asked on 14 Oct 2009, 08:01 AM
Hello Telerik team,
I'm using RadButton but there's a problem with this control. I can't use TooltipService.Tooltip to show my tooltip as when I use standard button.
Is there is a control's bug?
Thanks.

3 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 15 Oct 2009, 02:33 PM
Hi Taufik,

Thank you for interest in the RadButton for Silverlight.

It sounds strange that the tool tip service doesn't work with the RadButton control. In the attached example you can find a sample project. Please give it a try and let us know if your scenario is different and still not works.

Below is the result of the sample:



We hope this example will help you.

Best wishes,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
tungnt185
Top achievements
Rank 2
answered on 16 Oct 2009, 02:02 AM
Thanks Telerik teams,
Yes, that's right RadButton've Tooltip but my situation is:  When I want to make a button with an image and a textblock that didn't show Tooltip as with standard button. Here's my code:

                <telerik:RadButton  Margin="87,0,0,8" HorizontalContentAlignment="Center" Background="Transparent"  BorderThickness="1" Tag="mnuAddNew" Height="28" Width="75" HorizontalAlignment="Left" VerticalAlignment="Bottom" d:LayoutOverrides="Width, Height"
                    <StackPanel Orientation="Horizontal"
                        <Image Width="16" Height="16" Source="Add16.png" 
                            ToolTipService.ToolTip="RadButton"  Margin="2,0,0,0" /> 
                        <TextBlock Text="OK"  Margin="4,0,4,0" ToolTipService.ToolTip="Rad_TextBlock"/> 
                    </StackPanel> 
                </telerik:RadButton> 
 
                <Button  Margin="8,0,0,8" HorizontalContentAlignment="Center" Background="Transparent"  BorderThickness="1" Tag="mnuAddNew" Height="28" Width="75" VerticalAlignment="Bottom" d:LayoutOverrides="Width, Height" HorizontalAlignment="Left"  > 
                    <StackPanel Orientation="Horizontal"
                        <Image Width="16" Height="16" Source="Add16.png" 
                            ToolTipService.ToolTip="DefaultButton"  Margin="2,0,0,0" /> 
                        <TextBlock Text="OK"  Margin="4,0,4,0" ToolTipService.ToolTip="TextBlock"/> 
                    </StackPanel> 
                </Button> 

What's problem and solution for this?


0
Ivan
Telerik team
answered on 19 Oct 2009, 03:59 PM
Hi Taufik,

Thank you for reporting the issue.

We confirm that this one is actually a bug in the RadButton's Style.

According your report we updated your Telerik points.

Kind regards,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
tungnt185
Top achievements
Rank 2
Answers by
Ivan
Telerik team
tungnt185
Top achievements
Rank 2
Share this question
or