Changing the template

4 posts, 1 answers
  1. Alex
    Alex avatar
    21 posts
    Member since:
    Apr 2012

    Posted 09 Oct 2012 Link to this post

    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.
  2. Answer
    Victor
    Admin
    Victor avatar
    1351 posts

    Posted 10 Oct 2012 Link to this post

    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.

  3. DevCraft banner
  4. Alex
    Alex avatar
    21 posts
    Member since:
    Apr 2012

    Posted 10 Oct 2012 Link to this post

    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.
  5. Alex
    Alex avatar
    21 posts
    Member since:
    Apr 2012

    Posted 10 Oct 2012 Link to this post

    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>
Back to Top