TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
XAML Coding Standard

NAM$008Checked automatically with code checker

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


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"/>