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

NAM$004Checked automatically with code checker

Synopsis:Do use x:Key to give resources a unique name
Severity Level:1
Category:Naming Conventions


The x:Key directive is used to uniquely identify elements that are created and referenced in a XAML resource dictionary. It is the most common and preferred way to identify a resource in a resource dictionary

  <Color x:Key="AnnotationBlueColor"/>

  <Style x:Key="ButtonStyle" TargetType="{x:Type Button}">