mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 16:06:07 +02:00
* add toc/bread changes * add xaml-services * add ported wpf content * add xaml-services info to docfx * Fix links 1 * Fix links 2 * Fix links 3 * Fix links 4 * Fix links 5 * Fix links 6 * Fix links 7 * Fix xaml-services link * Fix snippets 1 * Fix snippets 2 * adjust breadcrumb and toc * remove preserve-view from breadcrumbs * add empty view to toc item xaml * update include * remove contextual toc for vs article :(
56 lines
2.2 KiB
Markdown
56 lines
2.2 KiB
Markdown
---
|
|
title: "XamlName Grammar"
|
|
ms.date: "03/30/2017"
|
|
helpviewer_keywords:
|
|
- "DottedXamlName grammar [XAML Services]"
|
|
- "grammar [XAML Services], DottedXamlName"
|
|
- "grammar [XAML Services], XamlName"
|
|
- "names in XAML [XAML Services]"
|
|
- "XamlName grammar [XAML Services]"
|
|
ms.assetid: 11e4cada-41d2-494d-9531-0d3df4dfcbe3
|
|
---
|
|
# XamlName Grammar
|
|
|
|
XamlName Grammar is a specific grammar that is defined in the XAML language specification [MS-XAML], which is reproduced here for convenience.
|
|
|
|
## From the XAML Specification
|
|
|
|
The [MS-XAML] specification defines the grammar XamlName to identify the set of legal symbolic identifiers used for types and properties.
|
|
|
|
String values that are of type XamlName must conform to the following grammar:
|
|
|
|
```xaml
|
|
XamlName ::= NameStartChar ( NameChar )*
|
|
NameStartChar ::= LetterCharacter | '_'
|
|
NameChar ::= NameStartChar | DecimalDigit | CombiningCharacter
|
|
LetterCharacter ::= UnicodeLu | UnicodeLl | UnicodeLo | UnicodeLt | UnicodeNl
|
|
DecimalDigit ::= UnicodeNd
|
|
CombiningCharacter ::= UnicodeMn | UnicodeMc
|
|
```
|
|
|
|
Which assumes the following general category values as defined in the Unicode Character Database
|
|
|
|
| Unicode category | Description |
|
|
|--------------------|-------------------------------|
|
|
| Lu | Letter, Uppercase |
|
|
| Ll | Letter, Lowercase |
|
|
| Lt | Letter, Titlecase |
|
|
| Lm | Letter, Modifier |
|
|
| Lo | Letter, Other |
|
|
| Mn | Mark, Non-Spacing |
|
|
| Mc | Mark, Spacing Combining |
|
|
| Nd | Number, Decimal |
|
|
| Nl | Number, Letter |
|
|
|
|
XAML defines a second grammar, DottedXamlName, that is used for property and event qualified references, and also for attached members. For more information, see <xref:System.Windows.DependencyProperty> and [XAML Overview (WPF)](../net/wpf/fundamentals/xaml.md).
|
|
|
|
String values that are of type DottedXamlName must conform to the following grammar:
|
|
|
|
```xaml
|
|
DottedXamlName ::= XamlName '.' XamlName
|
|
```
|
|
|
|
## Remarks
|
|
|
|
For the complete specification, see [\[MS-XAML\]](https://docs.microsoft.com/previous-versions/msp-n-p/ff650760(v=pandp.10)).
|