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

ORG$002Checked automatically with code checker

Synopsis:Consider putting the XAML element type and the x:Name together on the first line
Language:XAML
Severity Level:1
Category:Organization and Layout


Description:

Putting the XAML type and the x:Name on the same line lets the reader of your code glance both the type and the unique name of a XAML element at once. It is almost like declaring a variable in C# code. You should also consider putting nothing else on the same line as the XAML type and the x:Name.

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