TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
XAML Coding Standard
Search

Category: Naming Conventions

Synopsis:Naming Conventions


Description:

Coding Rules

NameCheckedSynopsis
NAM$001 Checked automatically with code checker Do use US English
NAM$002 Checked automatically with code checker Consider giving each logical XAML element a unique name
NAM$003 Checked automatically with code checker Do use x:Name instead of Name to give XAML elements a unique name
NAM$004 Checked automatically with code checker Do use x:Key to give resources a unique name
NAM$005 Checked automatically with code checker Avoid giving a XAML element both an x:Key and an x:Name
NAM$006 Checked automatically with code checker Do use camel casing for the x:Name
NAM$007 Checked automatically with code checker Do use Pascal casing for the x:Key
NAM$008 Checked automatically with code checker Do postfix the x:Name with the type of the XAML element
NAM$009 Checked automatically with code checker 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 Checked automatically with code checker Consider using brief or abbreviated namespace aliases
NAM$014 Checked automatically with code checker Do use lowercase letters for namespace aliases
NAM$015 Checked automatically with code checker Consider using the same namespace aliases throughout your project