dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.08k stars 1.17k forks source link

Closing a tooltip opened from keyboard does not raise ToolTipClosing event #4672

Closed SamBent closed 3 years ago

SamBent commented 3 years ago
  1. Run (revised) sample app attached to #4612
  2. Press TAB repeatedly until focus arrives on the TextBox labelled "TextBox"
  3. Wait for tooltip to appear (and note the ToolTipOpening event is recorded in the ListBox)
  4. Press TAB again

    Actual behavior: Tooltip disappears, but the ToolTipClosing event isn't raised.

    Expected behavior: ToolTipClosing event should be raised (and recorded in the ListBox).

By contrast, move the mouse into the TextBox, wait for the tooltip, then move the mouse upwards away from the TextBox. The ToolTipOpening and ToolTipClosing events are both raised (and recorded in the ListBox).

The ToolTipClosing event should be raised whenever a tooltip closes.

SamBent commented 3 years ago

Fixed by the tooltip work in 6.0-preview7.