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

ORG$003Checked automatically with code checker

Synopsis:Consider putting the Style property on the second line
Language:XAML
Severity Level:1
Category:Organization and Layout


Description:

If it is necessary to explicitly define a style for a XAML element, you should consider putting this on the second line. The style defines what your XAML element will look like, and all the other properties are either extensions to or deviations from this style.

  <Button x:Name="closeButton"
    Width="38" Height="38"/>
    Style="{DynamicResource CloseButtonStyle}"/>

  <Button x:Name="closeButton"
    Style="{DynamicResource CloseButtonStyle}"
    Width="38" Height="38"/>