Strange black box appearing in wpf application

C#WpfUser Interface

C# Problem Overview


enter image description here

Hi!

I am new in wpf application development. I just create a demo application and I see that the black box appearing in the top of my application. Can anyone tell me how can I remove this ?

I am sorry, I don't even know the name of it.

C# Solutions


Solution 1 - C#

This is a new feature as of VS 2015 Update 2 XAML Diagnostics. This shows up only if you are debugging the application.

If you really need to disable this, there's an option in the Tools > Options > Debugging > General - Enable UI Debugging Tools for XAML > Show runtime tools in application

XAML UI runtime tools options

Solution 2 - C#

This is new (and, actually, useful) feature in VS 2015 Update 2 (In-App Menu). It allows you to pick visuals directly from the screen and switch to visual tree viewer (see "Live Visual Tree" toolbox).

It affects debug mode only.

Solution 3 - C#

As the others have said it is a UI Debugger and can be very helpful. You don't need to go to the options menu to disable this though. There is a button that toggles it on and off in the Live Visual Tree tab.
See image UI Debugger toggle - visual studio

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionIftieaqView Question on Stackoverflow
Solution 1 - C#Petr VávroView Answer on Stackoverflow
Solution 2 - C#DennisView Answer on Stackoverflow
Solution 3 - C#AechView Answer on Stackoverflow