dotnet / dotnet/wpf

Tooltips not closing for custom render controls

Open
#7,134 7 comments 1 reaction 1 assignee Claimed by @dipeshmsft View on GitHub
area-Tooltip Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Issue is seen with .NET6.0, including latest 6.0.401
Issue was not present in .NET framework 4.8
Seen on both Windows 10 and 11.

The attached project demonstrates the issue:
If a custom render control does not draw portions of the area that the control covers, then the tooltip should close when the mouse moves off of the drawn parts, as it did in .NET4.8.
What is observed is that the tooltip stays open as long as the mouse is over the control, including the non-drawn area.

Demonstration: .NET 6.0
![dotnet6 0](https://user-images.githubusercontent.com/114644709/192958631-09d5c75d-a715-4b73-9c1f-d3010914b9bd.gif)

Demonstration: .NET 4.8
![dotnet4 8](https://user-images.githubusercontent.com/114644709/192959314-1d4552f6-7874-4a28-b74c-7445287f2120.gif)

[WpfApp3.zip](https://github.com/dotnet/wpf/files/9671786/WpfApp3.zip)

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.