Okay, I'll slow down 😛
It seems like the error message only happens in Design view. I'm pretty sure that if you open the MainPage Design view in VS 2010, it would also show some error. Blend and VS may not always report the same design-time error.
I could look into this further but you also mentioned that you did a lot of code change so I may not replicate the same issue.
For now, what I did was download FrostedTab from TemplateGallery. In VS 2010 Design view when I reload the designer, I get "Undefined CLR namespace error". In Expression Blend 4 Design view MainPage still loaded (unlike yours where you have a StackTrace) but the results include "Invalid XAML" error. Regardless of these two errors, the project compiled and run fine from VS and Blend.