Skip to content

Commit 56e4599

Browse files
authored
Merge pull request #1703 from karann-msft/master
Adding page for XAML Errors and Warnings
2 parents 2e0eadb + 20c0a9f commit 56e4599

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

docs/designers/TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#### [Accessibility products and services (Blend)](accessibility-products-and-services-blend.md)
2121
### [Keyboard shortcuts for XAML Designer](keyboard-shortcuts-for-xaml-designer.md)
2222
### [Debugging or Disabling Project Code in XAML Designer](debugging-or-disabling-project-code-in-xaml-designer.md)
23+
### [XAML Errors and Warnings](xaml-errors-warnings.md)
2324
## [Create Modern Desktop Applications with Windows Presentation Foundation](create-modern-desktop-applications-with-windows-presentation-foundation.md)
2425
### [Getting Started with WPF](getting-started-with-wpf.md)
2526
#### [Introduction to WPF](introduction-to-wpf.md)
Loading
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "XAML Errors and Warnings | Microsoft Docs"
3+
ms.date: 03/06/2018
4+
ms.technology: vs-ide-designers
5+
ms.topic: "article"
6+
ms.assetid: 34eac8a0-7ec5-4c40-b97a-0126ed367931
7+
author: "karann-msft"
8+
ms.author: "karann"
9+
manager: douge
10+
ms.workload:
11+
- "multiple"
12+
---
13+
# XAML Errors and Warnings
14+
15+
When authoring XAML, Visual Studio analyzes the code as you type. A squiggle appears on a line of code when an error is detected. Hovering over the squiggle gives you more information about the error or warning. For some errors and warnings, a Quick Action lightbulb is displayed, and using the **Ctrl**+**.** keyboard shortcut displays the options to fix the issue.
16+
17+
## Error types
18+
19+
Behind the scenes, multiple tools analyze the XAML in parallel. XAML errors are categorized into one of the following three types, based on the tool that detected the error:
20+
21+
|**Error detected by**|**Error code format**|
22+
|--------------------------------|-----------------|
23+
|XAML Language Service (XAML editor)|XLSxxxx|
24+
|XAML Designer|XDGxxxx|
25+
|XAML Edit and Continue|XECxxxx|
26+
27+
> [!Note]
28+
> Not all errors/warnings have a corresponding code. Such errors are usually XAML Designer errors.
29+
30+
31+
## Suppress XAML Designer errors
32+
33+
Open the **Options** dialog by selecting **Tools > Options**, and then select **Text Editor > XAML > Miscellaneous**.
34+
35+
Uncheck the **Show errors detected by the XAML designer** check box.
36+
37+
![Suppress XAML Designer errors](../designers/media/suppress_xaml_designer_errors.PNG "SuppressXAMLDesignerErrors")
38+
39+

0 commit comments

Comments
 (0)