dotnet / dotnet/wpf

Tooltip appear, DispatcherTimer dysfunction

Open
#10,596 3 comments 3 reactions 0 assignees View on GitHub
area-Tooltip Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

Background task produce queue, UI consum the queue,
and ProgressBar shows the count of queue,
Tooltip would make DispatcherTimer not triggerred, ProgressBar increase quickly.
Refer to the attachment 'TimerTest.zip'

[TimerTest.zip](https://github.com/user-attachments/files/19333104/TimerTest.zip)

### Reproduction Steps

Move mouse over the Menu button, tooltip appear, move mouse between buttons, the ProgressBar would increase quickly.

1. Test with DispatcherPriority.Send has the same result.
2. NET48, .net6 and .net 9 has the same result.
3. Using Timer.timer or Thread.Timer is working, but must using BeginInvoke( ) at the same time.

### Expected behavior

Tooltip should not affect the DispatcherTimer too much

### Actual behavior

Tooltip would make my large project fail, buffer overflow.

### Regression?

_No response_

### Known Workarounds

_No response_

### Impact

_No response_

### Configuration

_No response_

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