How to edit DataTemplate in VS designer
Is it possible to edit (in design mode) DataTemplate in Visual Studio WPF Designer?.
I know its possible to edit DataTemplate in Blend throug Resourc开发者_StackOverflow中文版es Tab.
But I couldn't find a way to open a DataTemplate in Visual Studio.
Thanks in advance for any hint.
I know it's an old question, but (in VS2015, at least) if you put your DataTemplate
in Control.Resources
and use "Go to Definition" from the context menu on a StaticResource
/DynamicResource
ResourceKey
it will show that DataTemplate
in the designer pane. The only problem is that I haven't figured out how to get back to the main control designer without closing and re-opening the document.
in VS Express 2012, select your ListView or GridView, then click the property marker for "ItemTemplate" and select "Edit Resource"
this worked for me
In VS Express 2012 it works like this: Right click in the VS designer on your custom control/control template and select from the context menu "Edit Template" -> "Edit copy". This will copy the xaml of the control as a ressource in your active window. There you can easily edit it and e.g. see the grid lines etc.
精彩评论