Need help in wpf tooltip design

Smrithi Surendran 61 Reputation points
2022-09-26T02:35:14.537+00:00

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.
https://learn.microsoft.com/en-us/answers/questions/649007/baloon-tooltip-above-the-overlay-using-wpf.html

  • 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"
Stroke="LightSkyBlue">
<Path.Fill>
<SolidColorBrush Color="DeepSkyBlue"/>
</Path.Fill>
</Path>

Developer technologies | XAML
0 comments No comments
{count} votes

Accepted answer
  1. Hui Liu-MSFT 48,681 Reputation points Microsoft External Staff
    2022-09-26T07:28:28.063+00:00

    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" />  
            </Grid>  
    

    The result:
    244619-image.png

    ----------------------------------------------------------------------------

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.