Is there a Visual Studio (or freeware) equivalent for Expression Blend's "Edit Template" feature?
Posted
by DanM
on Stack Overflow
See other posts from Stack Overflow
or by DanM
Published on 2009-09-30T20:57:44Z
Indexed on
2010/05/29
18:02 UTC
Read the original article
Hit count: 189
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.
Here's a screen cap from Expression Blend that shows what I'm talking about:
Doing this for DataGrid
results in the following:
<Style x:Key="DataGridStyle1" TargetType="{x:Type Custom:DataGrid}">
...
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Custom:DataGrid}">
...
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsGrouping" Value="True">
<Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
</Trigger>
</Style.Triggers>
</Style>
(The ...
is of course replaced with setters and the contents of the control template.)
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?
Edit
I'm also curious if this feature will be in Visual Studio 2010. Anyone know?
© Stack Overflow or respective owner