R – WPF DataTemplate/ControlTemplate and VS2008 designer

controltemplatedatatemplatevisual-studio-2008wpf

Suppose you have WPF Window composed of many elements that are using DataTemplates / ControlTemplates (ItemControls … )
But you want to see how every DataTemplate looks like in VS Designer.
What more, if you define a ControlTemplate from as a Template located in another file to be able to view it with the content.

Something like MasterPage and ChildElements in ASP.NET
You can always see what elements have you put together.

Is this possible in WPF too?
Otherwise.. every change I make to the DataTemplate can be seen after a long-time-consuming compilation and start.

Thank you guys..

Best Answer

Stefan,

I think that you can do this by creating Design Time class as described in the link below:

http://karlshifflett.wordpress.com/2008/10/11/viewing-design-time-data-in-visual-studio-2008-cider-designer-in-wpf-and-silverlight-projects/

Hope this helps.

Related Topic