dotnet / dotnet/wpf

Tooltip not closing automatically in WPF

Open
#9,374 5 comments 0 reactions 0 assignees View on GitHub
:mailbox_with_no_mail: waiting-author-feedback Needs minimal repro project
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

I am having a strange issue where in tooltip for a data grid template column doesn't closes automatically. This happens inconsistently, but when ever it happens it's a chain process as tooltip continues to remain open for all the controls until the app is restarted. ShowDuration property of tooltip is not defined and hence it should be default of 5 secs here. No specific code written for tooltip closing/opening events.

It happens for dot net framework version 4.6.1.
![Tooltip](https://github.com/dotnet/wpf/assets/46885624/49307903-cb1a-4854-8258-8e46d1301401)

### Reproduction Steps

It happens inconsistently in client machines and not on dev environments. Mouse focus on the control(which is a data grid template column and a texblock as its control) and move focus out.

### Expected behavior

Tooltip should close automatically when mouse focus is changed

### Actual behavior

On mouse focus, tooltip window is open and when focus is moved out tooltip is not closed. Even when another tooltip is opened, the other stays there forever.

### Regression?

_No response_

### Known Workarounds

Restart the applicaton

### Impact

High impact as an app restart is the only solution left

### Configuration

.Net Framework 4.6.1

### 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.