Visual Studio already has built-in "code snippets" to handle this; type "propdp" and hit tab. For some reason this doesn't work in Silverlight projects, but you can get around this by copying the snippet from a WPF project into the Silverlight snippets list.