dotnet / dotnet/dotnet-api-docs

c# tooltip draw function bounding rectangle issue

Open
#9,942 5 comments 0 reactions 0 assignees View on GitHub
area-WPF Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

I am trying to create a custom tool tip which consists of 3 lines, due to the content I have switched the font in the _Draw event to "Courier New", size 8. However its clear from the results that the bounding rectangle needs to be recomputed, but I cannot see how. Looking at the many samples online none of these show how to adjust the bounding rectangle.

I also tried implementing the _Popup event handler with odd results where the event handler is just not being called.

Labels: c#, tooltips, bounding rectangle

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.