Coding standards for silverlight applications

XAML
  • Referenced namespace should be in camelCase
  • All Class names, Resource names and control names should be in PascalCase e.g. ewModel:MyViewModel x:key="ViewModel"/>
  • Styles should be placed in saperate resource dictionaries
  • Use Grid as a Root
  • Use RowDefinitions & ColumnDefinitions with star (*) value to structure the layout so that the website will fit in any resolution
  • Do not use unwanted Margin to structure the controls, instead use Row and Column Definitions
  • Limit the use of ListBox, if the data to be loaded is huge; instead, use DataGrid
  • Try to use style for every controls, so that the change in the style with reflect for all the controls in a single change
  • Always align the code; it should be readable

Comments