I spent a lot of time researching the same problem. Some solutions related this bug with some referenced assemblies. Others said that Microsoft.Windows.Design.Extension.dll
and .Interactivity.dll
should be in the references of the project. But none of these solutions worked for me.
I think it is a bug in Visual Studio 2012, Microsoft has to fix it.