Need help in wpf tooltip design

Smrithi Surendran 61 Reputation points

Please see the attached image
We need to design the tooltip as shown in below picture(green area). We are looking for the solution with "Path data" in xaml file, similar to the solution provided in the below link.

  • 244569-capture.pngExample for Path data :

<Path x:Name="Container"
Canvas.Left="0" Canvas.Top="0"
Margin="0" Data="M 0,45 L10,40 L160,40 C160,40 170,40 170,35 L170 10 C170,10 170,5 160,5 L10,5 C10,5 0,5 0,10 L0,35 C0,35 0,40 0,45 Z"
<SolidColorBrush Color="DeepSkyBlue"/>

A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
768 questions
0 comments No comments
{count} votes

Accepted answer
  1. Hui Liu-MSFT 40,866 Reputation points Microsoft Vendor

    For drawing paths, you could try to refer to Shapes and Basic Drawing in WPF Overview.

    The bubble tooltip is in the Grid, you can set the length and width of the Grid to set its size.

    <Grid Width="300" Height="100">  
                <Path Fill="LightSkyBlue" Stretch="Fill" Stroke="#FF000000"   
                      Data="M 0,40 L5,45  L5,75 C5,75 5,80 10,80 L160,80 C160,80 165,80 165,75 L165,10 C165,10 165,5 160,5 L10,5 C10,5 5,5 5,10 L5,35 Z" />  

    The result:


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful