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!