title: Is there a Visual Studio (or freeware) equivalent for Expression Blend's "Edit Template" feature?
body: <p>In Expression Blend, you can view and edit the control template of objects in the "Objects and Timeline" panel. I'm wondering if there's an equivalent feature in Visual Studio or if there's something free (or very inexpensive) I can download that will allow me to do this.</p>
  
  <p>Doing this for <code>DataGrid</code> results in the following:</p>
  
  <pre><code>&lt;Style x:Key="DataGridStyle1" TargetType="{x:Type Custom:DataGrid}"&gt;
    ...
    &lt;Setter Property="Template"&gt;
      &lt;Setter.Value&gt;
        &lt;ControlTemplate TargetType="{x:Type Custom:DataGrid}"&gt;
        ...
        &lt;/ControlTemplate&gt;
      &lt;/Setter.Value&gt;
    &lt;/Setter&gt;
    &lt;Style.Triggers&gt;
      &lt;Trigger Property="IsGrouping" Value="True"&gt;
        &lt;Setter Property="ScrollViewer.CanContentScroll" Value="False"/&gt;
      &lt;/Trigger&gt;
    &lt;/Style.Triggers&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>(The <code>...</code> is of course replaced with setters and the contents of the control template.)</p>
  
  <p>This is a very useful starting point if you want to create a custom style and template for a control. It seems like you can do pretty much anything you can do in Blend in Studio, but this one is eluding me. Any ideas?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I'm also curious if this feature will be in Visual Studio 2010. Anyone know?</p>