New codeproject article on WPF, Silverlight + T4 Templates

April 28th, 2009 by Colin Eberhardt

I have just finished a new article on codeproject:

Generate WPF and Silverlight Dependency Properties using T4 Templates

It is an extension of my previous blog post regarding Silverlight DP generation, adding attached properties, comments, metadata and WPF support. Enjoy!

codeproject

Tags:

2 Responses to “New codeproject article on WPF, Silverlight + T4 Templates”

  1. Philipp says:

    Nice one, Scott

    I think I’ll have to experience these firsthand – I’m not sure yet whether I’d prefer the XML declaration plus template over code snippets – last but not least with regards to refactoring. But I’ll definitely try these out :-)

    Cheers,
    Philipp

    ps: A minor issue with the SL sample: The template file contains an absolute path, but it appears that relative paths work just fine. At least browsing for some files and thus changing the working directory did not prevent VS from correctly compiling the template. If you can, I’d rather fix this in the sample before the CP trolls have your rating for breakfast ;)

  2. Philipp says:

    Ouch! That definitely was the wrong name – sorry, Colin!

Leave a Reply