开发者

How do I add VisualStateManager to my Surface project?

I 开发者_Go百科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?


Make sure you are

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

VSM is not built into WPF before 4.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜