dotnet / dotnet/wpf

Tooltips rapidly close - existing WPF 4.8 application - some computers only

Open
#10,015 5 comments 0 reactions 0 assignees View on GitHub
.NET Framework Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

This problem is specific to certain PCs, and I am looking for advice how to narrow down the cause. The problem has emerged for an existing compiled WPF 4.8 application, seemingly triggered by certain system updates.

Problem: certain Tooltips will rapidly flash on/off. This is similar to other tooltip issues here but none were for .NET Framework 4.8. (https://github.com/dotnet/wpf/issues/7489, https://github.com/dotnet/wpf/issues/6710, https://github.com/dotnet/wpf/issues/6852, https://github.com/dotnet/wpf/issues/6289, https://github.com/dotnet/wpf/issues/6220)

In one example we had a user whose PC was updated from Windows 10 to 11; no problem before the update, problem occurs after the update. Something relevant must have changed -- but what?

---

I will gladly add any additional information about my application or system details that might be useful. But I'm not sure what to do next to figure that out.

### Reproduction Steps

My application consistently shows the problem on some computers but I have not yet been able to create a small repro that also does so.

On PCs with this issue, when the user mouses over certain custom controls (derived from `Control`) the problem happens. Other controls have no problem.

### Expected behavior

Tooltip remains visible.

### Actual behavior

Tooltip briefly appears/disappears.

Using WPF Snoop the following events all are logged at the same moment:
![Image](https://github.com/user-attachments/assets/df9d3307-0c41-4e5c-81a2-2a04050a1e78)

### Regression?

Yes

### Known Workarounds

None

### Impact

We use the tooltips to summarize some info that the user otherwise can only access with many more steps.

### Configuration

System info... may or may not be relevant:

From computer C **without** the issue:
- `RuntimeInformation.FrameworkDescription = ".NET Framework 4.8.4739.0"`
- `System.Environment.Version = "4.0.30319.42000"`
- OS Name Microsoft Windows 10 Enterprise
- Version 10.0.19045 Build 19045

From computer D **with** the issue:
- `RuntimeInformation.FrameworkDescription = ".NET Framework 4.8.9277.0"`
- `System.Environment.Version = "4.0.30319.42000"`
- OS Name Microsoft Windows 11 Enterprise
- Version 10.0.22631 Build 22631

From computer J **without** the issue:
- `RuntimeInformation.FrameworkDescription = ".NET Framework 4.8.9277.0"`
- `System.Environment.Version = "4.0.30319.42000"`
- OS Name Microsoft Windows 11 Enterprise
- Version 10.0.22631 Build 22631

Note that D and J are the same so I'm obviously missing some key distinguishing detail.

### Other information

_No response_

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.