* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.6 KiB
title, description, ms.date, helpviewer_keywords, ms.assetid
| title | description | ms.date | helpviewer_keywords | ms.assetid | |||||
|---|---|---|---|---|---|---|---|---|---|
| How to: Use Special Characters in XAML | Learn about the syntax for encoding special characters in Unicode UTF-8 file format in Visual Studio for use in XAML files in Windows Presentation Foundation. | 03/30/2017 |
|
a57776d1-f353-4794-afa0-bfa3c712ed1c |
How to: Use Special Characters in XAML
Markup files that are created in Visual Studio are automatically saved in the Unicode UTF-8 file format, which means that most special characters, such as accent marks, are encoded correctly. However, there is a set of commonly-used special characters that are handled differently. These special characters follow the World Wide Web Consortium (W3C) XML standard for encoding.
The following table shows the syntax for encoding this set of special characters:
| Character | Syntax | Description |
|---|---|---|
| < | < |
Less than symbol. |
| > | > |
Greater than sign. |
| & | & |
Ampersand symbol. |
| " | " |
Double quote symbol. |
Note
If you create a markup file using a text editor, such as Windows Notepad, you must save the file in the Unicode UTF-8 file format in order to preserve any encoded special characters.
The following example shows how you can use special characters in text when creating markup.
Example
[!code-xamlSpecialCharsSnippets#SpecialCharsSnippet1]