uno
uno copied to clipboard
`ToolTips` are not shown and keyboard shortcuts don't work for Skia.WPF.
Current behavior
When hovering the TabViewItem tab, a ToolTip with the TabViewItem's Header text should be shown but don't. Also, the Ctrl+F4 shortcut for closing the current tab doesn't work.
Expected behavior
The ToolTip shows up and the keyboard shortcuts work.
How to reproduce it (as minimally and precisely as possible)
- Open the attached solution and compile it.
- Execute it in Skia.WPF head.
- Hover the TabViewItem tab.
- Compare with WinUI so you can see the difference.
Workaround
No known workaround.
Works on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
NuGet package version(s)
Uno.WinUI 5.1.80
Affected platforms
Skia (WPF)
IDE
Visual Studio 2022
IDE version
17.9.2
Relevant plugins
No response
Anything else we need to know?
No response
@Suriman I think you forgot to attach the repro :D
WpfToolTipsShortcuts.zip.txt Here is the file Suriman wanted to attach; he had troubles attaching it.
@sasakrsmanovic The file you sent is actually a text file with "attachment was removed"
@Suriman the repro you provided is not the right one. You should be able to attach it here as a zip, using drag and drop. Make sure to follow these steps for creating a repro.
@ramezgerges the repro is now attached.
ToolTips are disabled by default. See: https://platform.uno/docs/articles/feature-flags.html#tooltips
Enable them with the FeatureConfiguration.ToolTip.UseToolTips
flag.
public AppHead()
{
FeatureConfiguration.ToolTip.UseToolTips = true;
this.InitializeComponent();
}
Incidentally, it is usually suggested to use the __SKIA__
build constant as below. But this has never worked for me...
#if __SKIA__
FeatureConfiguration.ToolTip.UseToolTips = true;
#endif
This works properly, thank you so much!
What about the Ctrl + F4 shortcut that shows up in the tooltip? Does not work for Skia but it works for WinUI. I mentioned this in the description of the issue.
Thanks in advance!
What about the Ctrl + F4 shortcut that shows up in the tooltip? Does not work for Skia but it works for WinUI. I mentioned this in the description of the issue.
fyi @jeromelaban, @MartinZikmund
This requires keyboard accelerators API, I have PR draft for that, will finish it as soon as possible
This is implemented via https://github.com/unoplatform/uno/pull/15245 (includes TabView
support)
I've tried it and it works fine! Thanks @MartinZikmund 😊
Awesome, closing!