Dutton

A PRISM Notifying Backing Property Snippet for Visual Studio

When writing View Models deriving from NotifyingObject in PRISM I find myself endlessly having to write public notifying properties backed by private fields. To save my fingers, here's a Visual Studio snippet I use:



  
    
Expansion PRISMNotifyingBackedProperty Richard Dutton A PRISM Notifying Backed Property propprism
_myProperty Private backing property name _myProperty MyProperty Public property name MyProperty int Property type int $MyProperty$); } }]]>

To use it:

You can now type "propprism" into your code and hit Tab to insert the snippet.

Hope this helps.


Share this: