views:

128

answers:

1

I have a surface project and I would like to use controls designed in Blend. I added these controls to my microsoft surface project, but I receive an error when I try to compile it.

Error 1 The tag 'VisualStateManager.VisualStateGroups' does not exist in XML namespace
'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 12 Position 4.
UserControl1.xaml 12 4  

How can I solve this issue? Can I use the VisualStateManager in Surface application at all?

+2  A: 

Make sure you are

  • using WPF 4
  • OR using the WPF Toolkit (http://wpf.codeplex.com/)

VSM is not built into WPF before 4.

Jeff Wilcox