Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinUI3] ToolTipText doesn't work on Windows 11 #94

Open
peerlessDJ opened this issue May 24, 2023 · 10 comments
Open

[WinUI3] ToolTipText doesn't work on Windows 11 #94

peerlessDJ opened this issue May 24, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@peerlessDJ
Copy link

Describe the bug

<tb:TaskbarIcon
    x:Name="TrayIcon"
    ToolTipText="Test-ToolTip"
    NoLeftClickDelay="True"
    IconSource="/Assets/ShareHub.ico"
/>

Steps to reproduce the bug

No response

Expected behavior

mouse hover can display the tooltip

Screenshots

No response

NuGet package version

NotifyIcon.WinUI:2.0.108
Mircosoft.WindowsAppSDK:1.3.230502000
Miraosoft.Windows.SDK.BuildTools:10.0.22621.756

x64 net6.0-windows10.0.22621.0

Windows 11 build 22621.1702

Platform

WinUI

IDE

Visual Studio 2022

Windows Version

Windows 11

WindowsAppSDK Version

Other

WindowsAppSDK Type

Packaged

Manifest

true/PM PerMonitorV2, PerMonitor

Additional context

No response

@peerlessDJ peerlessDJ added the bug Something isn't working label May 24, 2023
@duyngle
Copy link

duyngle commented May 24, 2023

I think it is the same issue as this one

@peerlessDJ
Copy link
Author

peerlessDJ commented May 25, 2023

I think it is the same issue as this one

<UserControl.Resources>
        <XamlUICommand
            x:Key="ShowHideWindowCommand"
            ExecuteRequested="ShowHideWindowCommand_ExecuteRequested"
            Label="Configuration" />
        <XamlUICommand
            x:Key="ExitApplicationCommand"
            ExecuteRequested="ExitApplicationCommand_ExecuteRequested"
            Label="Exit" />
        <MenuFlyout
            x:Key="TrayContextFlyout"
            AreOpenCloseAnimationsEnabled="False">
            <MenuFlyoutItem Command="{StaticResource ShowHideWindowCommand}" />
            <MenuFlyoutSeparator />
            <MenuFlyoutItem Command="{StaticResource ExitApplicationCommand}" />
        </MenuFlyout>
        <ToolTip x:Key="CustomToolTip">
            <StackPanel>
                <TextBlock Text="CustomToolTip" HorizontalAlignment="Center" />
            </StackPanel>
        </ToolTip>
    </UserControl.Resources>
    <tb:TaskbarIcon
        x:Name="TrayIcon"
        ToolTipText="Test-ToolTip"
        TrayToolTip="{StaticResource CustomToolTip}"
        ContextFlyout="{StaticResource TrayContextFlyout}"
        ContextMenuMode="PopupMenu"
        NoLeftClickDelay="True"
        IconSource="/Assets/Logo.ico">
    </tb:TaskbarIcon>

not fix this issue

@anonymousbugmaker6
Copy link

Same here, the tooltips doesn't work at all. I can see the new native tooltips showing without a text appear sometime. I think since windows 11 22h2 already have a new native fluent tooltips, it should use that instead.

@JasonWei512
Copy link

JasonWei512 commented Sep 7, 2023

Looks like v116 (or v115 ?) has fixed this bug.

@HavenDV
Copy link
Owner

HavenDV commented Sep 7, 2023

Looks like v116 (or v115 ?) has fixed this bug.

Or another Windows update that fixed what was broken in the previous update

@JasonWei512
Copy link

Did some testing. On Windows 11 22621.2134:

  • Version ≤ 112 doesn't work
  • Version ≥ 113 works

@HavenDV
Copy link
Owner

HavenDV commented Sep 7, 2023

Thanks for checking, then it's related to this commit - e12eac8

@HavenDV
Copy link
Owner

HavenDV commented Sep 7, 2023

The WPF version (code inherited from hardcodet/wpf-notifyicon) used custom tooltips by default. Now the system ones will be used by default

@anonymousbugmaker6
Copy link

Awesome! Now the tooltips are appearing

@Shujee
Copy link

Shujee commented Apr 17, 2024

Is this currently fixed? I'm on Windows 11 (10.0.22631.3447) and .NET 8, but the WPF version does not show custom tooltips. Only the pure text version (ToolTipText) is shown. Even the showcase examples do not show custom tooltips on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants