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

ORG$001Checked automatically with code checker

Synopsis:Do make the x:Name directive the first property after a XAML type instance
Language:XAML
Severity Level:1
Category:Organization and Layout


Description:

Having the x:Name directive always in the same place increases uniformity, readability, and discoverability of your XAML code.

  <Button x:Name="cancelButton" Content="Cancel" Height="38"/>

  <Button Content="Cancel" x:Name="cancelButton" Height="38"/>