Box with two lines appears on center top of System.Windows.Window

Michael Six 26 Reputation points
2023-01-19T00:27:42.4133333+00:00

Capture

Hi im using the System.Window.Window Base class with a BlockText & a Border to create a tooltip like window.
The issue is that at a certain width that black box width 2 lines appears. Any way to get rid of it? Im not sure if this is connected to windows itself.
Thanks a lot

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,196 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2023-01-19T07:33:23.1566667+00:00

    Hello @Michael Six ,

    Welcome to Microsoft Q&A forum.

    I believe that you got this issue when you were debugging your project in Visual Studio.  

    Actually, this is a feature(XAML Hot Reload) of Visual Studio, and it is enabled by default in VS 2022 and later versions. You can disable it by selecting Debug > Options > Debugging > XAML Hot Reload > uncheck "Enable XAML Hot Reload" or uncheck other options for specific project types.

    Please check this document: Verify that XAML Hot Reload is enabled for more details.

    User's image

    User's image

    User's image

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.