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

NAM$011

Synopsis:Do prefix the x:Name of template parts with PART_
Language:XAML
Severity Level:1
Category:Naming Conventions


Description:

Template parts are all those parts of a control template that a control (i.e., the code behind) expects, and without which the control cannot work or can only work with limited functionality. By convention, all the template parts should have the PART_ prefix. Nothing else should have this prefix.

  <Border x:Name="PART_CloseButton"/>

  <ItemsControl x:Name="PART_ItemsControl"/>