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

NAM$008Checked automatically with code checker

Synopsis:Do postfix the x:Name with the type of the XAML element
Language:XAML
Severity Level:1
Category:Naming Conventions


Description:

Again, the same naming conventions should apply that apply to variables in C#. We strongly recommend against prefixing the x:Name with the type, or even an abbreviation of the type, as is often seen in third party code on the Internet.

   <Button x:Name="btnCancel"/>

   <Button x:Name="buttonCancel"/>

  <Button x:Name="cancelButton"/>