Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add image into a tooltip

I have some TextBlocks with tooltips and I'd like to add an image into the tooltips (that means, I'd like to have tooltips with text and images).

Does anybody knows how could I do that in a simple way?

Thanks a lot!

like image 860
Guilherme Campos Avatar asked Oct 19 '12 18:10

Guilherme Campos


People also ask

How do I insert an image in tableau?

The image object is located under dashboards tab – right under objects. To add images in your dashboard, you can either double click or drag image object to the dashboard space. By doing so, you'll get a dialogue box which you can use to do the following; Choose your image – could be a logo etc.

What does tableau tooltip do?

Tooltips are details that appear when you rest the pointer over one or more marks in the view. Tooltips also offer convenient tools to quickly filter or remove a selection, select marks that have the same value or view underlying data.


1 Answers

This is one way to approach it:

<TextBlock>
    <TextBlock.ToolTip>
        <StackPanel Orientation="Horizontal">
            <Image Source="images/Item 2.gif" />
            <TextBlock>My tooltip text</TextBlock>
        </StackPanel>
     </TextBlock.ToolTip>

    Here is my text.
</TextBlock>
like image 150
RQDQ Avatar answered Sep 25 '22 07:09

RQDQ