Skip to content

Tooltip flicker in Ribbon Elements that are inside menu/dropdown #6220

Closed

Description

@SebiCiuca
  • .NET Core Version: 6.0.101
  • Windows version: 21H1 OS Build : 19043.1526
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: No

Problem description:
In .NET6 if you have a tooltip on a combobox/menu item it flickers and can't be read by user ( see picture https://imgur.com/a/RxFvAPP )
Actual behavior:
Tooltip shows for just a few milliseconds on the screen and closes itself.
Expected behavior:
Tooltip does not close itself unless user moves the mouse
Minimal repro:
https://github.com/SebiCiuca/RibbonToolTipFlicker

Steps to reproduce:
Open app .NET 5 - all tooltips for RibbonButton/RibbonMenuItem/RibbonGallery can be read by user ( they do not close unless move move)
Open app .NET 6 - tooltip from RibbonMenuItem/RibbonGallery can't be read by user they close in a matter of milliseconds. RibbonButton tooltip still works

Activity

  1. lindexi commented on Mar 8, 2022

    @lindexi
    Member

    See #5870 #4612 #5703 #5716

    Could you try dotnet 6.0.2 version?

  2. YerongAI commented on Mar 9, 2022

    @YerongAI

    See #5870 #4612 #5703 #5716

    Could you try dotnet 6.0.2 version?

    I have tried .NET Runtime 6.0.3 and complied with .NET SDK 6.0.201, the problem still not fixed.

    Just simply add more items to ComboBox, the first item may work, but the others may not work.

  3. YerongAI commented on Mar 9, 2022

    @YerongAI

    See #5870 #4612 #5703 #5716
    Could you try dotnet 6.0.2 version?

    I have tried .NET Runtime 6.0.3 and complied with .NET SDK 6.0.201, the problem still not fixed.

    Just simply add more items to ComboBox, the first item may work, but the others may not work.

      <ComboBox HorizontalAlignment="Center" VerticalAlignment="Center">
          <ComboBoxItem Content="1" ToolTip="1"/>
          <ComboBoxItem Content="2" ToolTip="2"/>
          <ComboBoxItem Content="3" ToolTip="3"/>
          <ComboBoxItem Content="4" ToolTip="4"/>
          <ComboBoxItem Content="5" ToolTip="5"/>
          <ComboBoxItem Content="6" ToolTip="6"/>
      </ComboBox>

    Test result: 1 and 2 worked, others not.

  4. YerongAI commented on Mar 9, 2022

    @YerongAI

    See #5870 #4612 #5703 #5716
    Could you try dotnet 6.0.2 version?

    I have tried .NET Runtime 6.0.3 and complied with .NET SDK 6.0.201, the problem still not fixed.
    Just simply add more items to ComboBox, the first item may work, but the others may not work.

      <ComboBox HorizontalAlignment="Center" VerticalAlignment="Center">
          <ComboBoxItem Content="1" ToolTip="1"/>
          <ComboBoxItem Content="2" ToolTip="2"/>
          <ComboBoxItem Content="3" ToolTip="3"/>
          <ComboBoxItem Content="4" ToolTip="4"/>
          <ComboBoxItem Content="5" ToolTip="5"/>
          <ComboBoxItem Content="6" ToolTip="6"/>
      </ComboBox>
    

    Test result: 1 and 2 worked, others not.

    More info: This problem occurs only on non-100% scaling.

  5. OptimaDan commented on Mar 10, 2022

    @OptimaDan

    This problem does not just affect ComboBox. It seems to affect all controls.

    Another example:
    <Grid ToolTip="Flash" Background="Red" Height="100"/>

    I have Windows 11 Pro (22000.556) with a 4K monitor. The tooltip flash issue only occurs when I set the display scale to 150% or more.

    .NET 5.0 works fine. It's only an issue with .NET 6.0.3

  6. ryoasai commented on Mar 11, 2022

    @ryoasai

    OptimaDan's comment is true. I also found that this bug affects all controls.

    You can reproduce it even with the simplest possible WPF app generated from template!
    I also use 4k display and 175% scaling.
    I think this is a major regression since the latest vs2022 update (17.1.1) and it should be fixed in higher priority.

    <Grid>
            <Button ToolTip="Hello World"  Content="Button"  />
    </Grid>
    
    
  7. ryoasai commented on Mar 11, 2022

    @ryoasai

    I installed the previous SDK and put global.json but the problem still persists.
    Is this caused by windows update rather than dotnet update?

    {
      "sdk": {
        "version": "6.0.200"
      }
    }
    

    Windows10(21H2)
    install date 2021/02/02
    os build 19044.1586

  8. Rand-Random commented on Mar 11, 2022

    @Rand-Random

    @ryoasai
    It is caused by the runtime in which .net version your application is running and not with which sdk you are working/building.

    you can check which runtime your application is using by calling this in your app.
    https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.runtimeinformation.frameworkdescription?view=net-6.0

    To force a different runtime, I believe the only way is to switch from framework dependent to self contained.
    https://docs.microsoft.com/en-us/dotnet/core/deploying/#publish-self-contained

    In self contained you can specify the runtime yourself

  9. redseujac75 commented on Mar 12, 2022

    @redseujac75

    To force a different runtime, I believe the only way is to switch from framework dependent to self contained. https://docs.microsoft.com/en-us/dotnet/core/deploying/#publish-self-contained

    In self contained you can specify the runtime yourself

    Is it possible to specify a specific runtime (sub)version, e.g. "net6.0.2" ? I'm afraid this will not work. The parameters "-f net5.0" or "-f net6.0" should work on the other hand, but that does not resolve the problem with the Windows Desktop Runtime 6.0.3.

  10. Rand-Random commented on Mar 12, 2022

    @Rand-Random

    @redseujac75
    As I already said, I believe that is impossible when you are using the framework dependent app model.
    Because you are "dependent" on the "framework" that is installed on the client machine.

    With "-f" you are only specifing the minimum framework you are supporting eg. saying ".net6.0" means you are supporting anything on ".net6.0.x".

    This is so that when a new hotfix release comes eg. .net6.0.1, and your clients installs this update either manually or through windows update, you don't have to rebuild your app and each and every client that has the app would need to re-install it.

    You don't need to lift a finger and your app automatically gets all the fixes that came with .net6.0.1.

    This is the desired output because normally the fixes within a hotfix release are good, and shouldn't cause issues.

    There are now 3 possible ways to fix this

    1. uninstall the runtime that causes the issue and go back the old one, every client of your app that faces the issue would need to do this
    2. pick up a stick and hit the person who introduced the bug with that stick so long untill the bug gets fixed and a new runtime gets released, every client of your app would need to install the new hotfix release
    3. remove the "framework dependency" by switching your app model to "self-contained", with "self-contained" it doesn't matter what runtime is installed on the clients machine because your app will run on that runtime you deliever with your app, the "whole" runtime is bundeld with your app and you are in full control when you update the runtime and when not

    Everything I wrote is to my best of knowledge.

  11. redseujac75 commented on Mar 12, 2022

    @redseujac75

    Thank you. But with "self-contained" you unfortunately also deliver actually the damned runtime 6.0.3 which is on the developer computer :(

    It's also rather problematic to uninstall the runtime 6.0.3 because it has been installed within the most recent Visual Studio 2022 update :(

    So finally what I wanted to explain is that it isn't that easy to specify the runtime yourself in self-contained in the given actual circumstances. So, indeed we will have to hit the person who introduced the bug :)

    A final remark: updates for .NET Desktop Runtimes are normally never included in Windows Updates.

  12. Rand-Random commented on Mar 12, 2022

    @Rand-Random

    @redseujac75

    It's also rather problematic to uninstall the runtime 6.0.3 because it has been installed within the most recent Visual Studio 2022 update :(

    Why would it be problematic?


    Thank you. But with "self-contained" you unfortunately also deliver actually the damned runtime 6.0.3 which is on the developer computer :(

    You can change it with a global.json

    {
      "sdk": {
        "version": "6.0.200"
      }
    }
    

    image

    This app will display .NET 6.0.2 while running the ConsoleApp1.exe from the publish folder because there it is configured as self-contained, but from bin/debug it will display .NET 6.0.3 as it is running with the latest .net 6.0.x version that is installed on the machine.


    A final remark: updates for .NET Desktop Runtimes are normally never included in Windows Updates.

    That seems to be incorrect, as you can see here, unless you actually meant the difference between Windows Update and Microsoft Update:
    https://devblogs.microsoft.com/dotnet/net-core-updates-coming-to-microsoft-update/

    What will be delivered from MU?
    Updates with both security and non-security fixes for all supported versions of .NET Core (currently .NET Core 2.1, .NET Core 3.1 and .NET 5.0) will be available on MU. These updates will target the .NET Core SDK, .NET Core Runtime, ASP.NET Core Runtime, and the .NET Core Desktop Runtime installers deployed either independently or as part of another application. .NET Core runtime binaries included with an application built as a self-contained deployment will not be updated by MU.


    Edit:
    After a bit googling I found this
    https://docs.microsoft.com/en-us/dotnet/core/versions/selection

    and you may try
    <RollForward>LatestPatch</RollForward>
    to only forward if a 6.1 would get released.

    on self-contained specifying this seems easier than the global.json

    <RuntimeFrameworkVersion>6.0.2</RuntimeFrameworkVersion>

  13. redseujac75 commented on Mar 13, 2022

    @redseujac75

    Thank you very much for your great answer!

    With adding a global.json file and publishing "self-contained" it didn't work for my project (Windows Desktop app - C# WPF). I don't know why.

    Meanwhile I also found the https://docs.microsoft.com/en-us/dotnet/core/versions/selection and added
    <RuntimeFrameworkVersion>6.0.2</RuntimeFrameworkVersion> to my project file. Now it's working with "self-contained" :)

    Notice that I don't like much the self-contained: it creates exe files that are too big. My program (single exe file): 143.995 kB :( Without self-contained: single exe file 8.388 kB. The difference is really too big.

    Concerning the updates I indeed meant "Windows" updates not "Microsoft" updates. But you are right: users can receive MS updates after selecting “Receive updates for other Microsoft products when you update Windows” under Settings > Update & Security > Windows Update > Advanced options.

  14. 13 remaining items

  15. DanStevens commented on Apr 9, 2022

    @DanStevens

    Is there a way to downgrade .NET to 6.0.2 until this issue is properly fixed?

  16. Ray-Wynn commented on Apr 12, 2022

    @Ray-Wynn

    The issue is related to scale settings other than 100% (merged report #6336) on Windows 11.
    System -> Display -> Scale = 100% problem disappears.
    If this helps getting it fixed sooner?

  17. RajeshAKumar commented on Apr 19, 2022

    @RajeshAKumar

    This is breaking production system and we can't dictate to end users how they should use the windows scaling.....

    Can we expect a patch sooner than 6.05?
    Please consider this a high priority.

  18. ThomasGoulet73 commented on Apr 20, 2022

    @ThomasGoulet73
    Contributor

    @RajeshAKumar .Net 6.0.5 is the next servicing release so it probably can't be sooner than .Net 6.0.5. The current servicing release for April is .Net 6.0.4 so you can expect .Net 6.0.5 to be released next month.

  19. RajeshAKumar commented on Apr 20, 2022

    @RajeshAKumar

    Sure if it is within a month, that is great. Thank you.

  20. johnco3 commented on Apr 21, 2022

    @johnco3

    I encountered this flashing tooltips also. It really affects my workflow as the viewing IDE at 100% makes the tiny fonts on the menus almost impossible to read. I wasted 2 days tracking this bug down (reinstalling windows and Visual Studio and trying on various other PCs). I wish I saw this discussion last week :( Surely ms can push this .Net update a little earlier than usual (before I go blind!).

  21. Rand-Random commented on May 10, 2022

    @Rand-Random
  22. RajeshAKumar commented on May 10, 2022

    @RajeshAKumar

    Thank you for notifying about the release!
    This is really good and I could verify that it works fine for our products.

  23. laurentkempe commented on May 11, 2022

    @laurentkempe

    6.0.5 also fixes the issue I had with tooltip 👍🏼 !

  24. singhashish-wpf commented on May 11, 2022

    @singhashish-wpf
    Contributor

    Thank you all for testing and confirming the fix.

  25. ghost locked as resolved and limited conversation to collaborators on Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugInvestigate

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions