Name | Checked | Synopsis |
---|
MIS$001
|
 |
Do be aware that windows, dialogs, message boxes, and popups are the root of their own visual tree |
NAM$001
|
 |
Do use US English |
NAM$002
|
 |
Consider giving each logical XAML element a unique name |
NAM$003
|
 |
Do use x:Name instead of Name to give XAML elements a unique name |
NAM$004
|
 |
Do use x:Key to give resources a unique name |
NAM$005
|
 |
Avoid giving a XAML element both an x:Key and an x:Name |
NAM$006
|
 |
Do use camel casing for the x:Name |
NAM$007
|
 |
Do use Pascal casing for the x:Key |
NAM$008
|
 |
Do postfix the x:Name with the type of the XAML element |
NAM$009
|
 |
Do postfix the x:Key with the type of the XAML element |
NAM$010
|
|
Consider providing meaningful names for your XAML elements |
NAM$011
|
|
Do prefix the x:Name of template parts with PART_ |
NAM$012
|
 |
Consider using brief or abbreviated namespace aliases |
NAM$014
|
 |
Do use lowercase letters for namespace aliases |
NAM$015
|
 |
Consider using the same namespace aliases throughout your project |
ORG$001
|
 |
Do make the x:Name directive the first property after a XAML type instance |
ORG$002
|
 |
Consider putting the XAML element type and the x:Name together on the first line |
ORG$003
|
 |
Consider putting the Style property on the second line |
ORG$004
|
 |
Consider putting related properties on the same line |
ORG$005
|
 |
Organize properties in the right order |
ORG$006
|
 |
Avoid giving properties a default value |
ORG$007
|
 |
Consider using the concise format for attribute value assignment |
ORG$008
|
 |
Consider using the concise format for assigning the path of a binding expression |
ORG$009
|
 |
Do use spaces instead of tabs in your XAML files |
ORG$010
|
 |
Do use an indentation of four spaces in your XAML files |
RES$001
|
|
Do use StaticResource if you can, DynamicResource if you must |
RES$002
|
 |
Do use StaticResource to define the based-on type for implicit styles |
RES$003
|
 |
Consider freezing objects that are freezable |
STY$001
|
 |
Do specify the target type of your style using the TargetType="{x:Type TypeName}" syntax |
STY$002
|
 |
Consider introducing implicit styles to avoid duplication of XAML code |
VAL$001
|
 |
Do let custom value converters return DependencyProperty.UnsetValue instead of null |
VAL$002
|
|
Consider enhancing your custom value converters with markup extensions |