Tips disappear before anyone could read it.
See original GitHub issue- .NET Core Version: Microsoft.NETCore.App 6.0.4, Microsoft.WindowsDesktop.App 6.0.4
- Windows version: Windows 11 Home, 21H2 build 22000.613
- Does the bug reproduce also in WPF for .NET Framework 4.8?: No
Problem description: Tooltips on WPF controls disappear just after displayed. We experience that on some systems with different Windows 10/11 versions and different .Net 6 framework versions. I can reproduce it on my machine. PowerToys: #17484
Actual behavior: The tooltip is shown and immediately closed.
Expected behavior: The tip should last longer.
Minimal repro: To reproduce the issue I created a sample WPF Application with a button and a list box with one item. The tooltip for that item appears only for a short time. If I add tooltip for the button the button’s tooltip remains visible. If I add more items to the window the behavior becomes irregular. Also tooltips on WPF debug buttons disappear too fast as well.
Added application sources and stack trace from my machine. stack_trace.txt WpfApp1.zip
I was able to reproduce that with following XAML code:
<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:WpfApp1" mc:Ignorable="d" Title="MainWindow"> <Grid> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> </Grid.RowDefinitions> <Button Grid.Row="0"> Sample Button 1 </Button> <ListBox Grid.Row="1" Grid.ColumnSpan="2"> <ListBox.Items> <ListBoxItem>Sample Item 1 <ToolTipService.ToolTip> <ToolTip> ToolTip for Sample Item 1 </ToolTip> </ToolTipService.ToolTip> </ListBoxItem> </ListBox.Items> </ListBox> </Grid> </Window>
Issue Analytics
- State:
- Created a year ago
- Comments:10 (6 by maintainers)
Top GitHub Comments
.NET 6.0.5 is now released but the fix is not included in the changelog: https://github.com/dotnet/wpf/issues?q=milestone%3A6.0.5+is%3Aclosed+label%3Aservicing-approved+
Now things make sense. 💡