title: MVC3 Display templates
body: <p>I've created custom Editor templates and Display templates. I've placed each of these types in a folder within my views folder.  The folders were named either EditorTemplate or DisplayTemplate, depending upon which type of template was created.</p>
  
  <p>So, now I can use EditorFor to use my custom editor template, or DisplayFor for my custom editor template.</p>
  
  <p>I would like to create a custom template for a LabelFor, but I haven't found an example of this.  Would I create a folder named Labeltemplate in my Views folder and add it here?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The reason I was trying to extend the LabelFor was to handle a Property that is of type KeyValuePair.  I want to use the Key of this property as the Label, and the value as the Display.  I asked a question <a href="https://stackoverflow.com/questions/8419484/how-can-i-create-a-custom-mvc3-template-or-html-helper-for-a-property-of-type-ke">here</a> about the DisplayFor to handle the Value. </p>
  
  <p>My solution ended up as></p>
  
  <pre><code>   @Html.DisplayFor(m =&gt; m.MyProperty, @Model.MyProperty.Key)
  </code></pre>
  
  <p>Thanks,</p>