Search code examples
visual-studiodependency-propertiescode-snippets

Missing snippet in Visual Studio


I have the same installation of Visual Studio on two machines, but on one, I can't find the snippet "propdp" for DependencyProperty. I only have prop/propg, can't really understand why. Is there an addon I have to install?


Solution

  • Came across this same issue myself today after a fresh install of VS2008 on Win7 64

    All I had to do to fix it was to

    1. Go to Tools > Code Snippets Manager
    2. Select Visual C# from the drop down menu
    3. Click Add
    4. Select the NetFx30 directory containing the code snippets, in my case it was...

      C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC#\Snippets\1033\NetFX30

    You should immediately be able to use the code snippet.