Ask Your Question
0

Is it possible to hide Visual Studio errors related to XAML that are not currently relevant and enable them when needed?

asked 2022-05-08 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-01-28 02:00:00 +0000

djk gravatar image

Yes, it is possible to hide Visual Studio errors related to XAML that are not currently relevant and enable them when needed using the Error List window.

To do this, follow these steps:

  1. Open Visual Studio and your XAML file.
  2. Click on the Error List window to open it.
  3. In the Error List window, click on the filter button (the funnel icon) and select "Errors and Warnings".
  4. Click on the triangle next to "Errors and Warnings" and select "Suppress Issues" from the dropdown list.
  5. In the Suppress Issues window, select the error(s) you want to hide and click on the "Add" button.
  6. Click on the "OK" button to close the window.

Now, the selected errors will be hidden from the Error List window. To enable them again, simply go back to the Error List window and click on the "Show Issues" button, then select "Suppressed Issues" from the dropdown list. This will show you the list of suppressed errors, and you can select the ones you want to enable and click on the "Remove" button.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-05-08 11:00:00 +0000

Seen: 7 times

Last updated: Jan 28 '22