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

Changing the template

3 Answers 55 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 10 Oct 2012, 03:02 AM
Hello.

How can I change the template of the RadToolTip to customize its look? I want to use a simple rectangle as a tooltip instead of the polygonal shape which is by default.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 10 Oct 2012, 06:23 AM
Hello Alex,

Thanks for writing.
Please read this help article.

All the best,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Alex
Top achievements
Rank 1
answered on 10 Oct 2012, 07:05 AM
Thanks. I read this article and it didn't help me. It describes how to change data template but I want to change the form of tooltip. For this I need to get template (style) of the control in Expression Blend. But I can't because there is no way how RadToolTip can be manipulated in Blend.
0
Alex
Top achievements
Rank 1
answered on 10 Oct 2012, 07:28 AM
Ok. I'm too hastened to reply.

Example of how tooltip can be customized:

<Rectangle Width="100" Height="100" Fill="White" 
telerikPrimitives:RadToolTipService.ToolTip="This is a rectangle.">
    <telerikPrimitives:RadToolTipService.Style>
        <Style TargetType="telerikPrimitives:RadToolTip">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="telerikPrimitives:RadToolTip">
                        <Grid>
                            <Rectangle Fill="{StaticResource PhoneAccentBrush}" />
                            <ContentControl Content="{TemplateBinding Content}" Template="{TemplateBinding ContentTemplate}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </telerikPrimitives:RadToolTipService.Style>
</Rectangle>
Tags
ToolTip
Asked by
Alex
Top achievements
Rank 1
Answers by
Victor
Telerik team
Alex
Top achievements
Rank 1
Share this question
or