如何将VisualStateManager添加到Surface项目?

gyu*_*isc 1 wpf wpftoolkit pixelsense

我有一个表面项目,我想使用Blend设计的控件.我将这些控件添加到我的microsoft表面项目中,但是当我尝试编译它时收到错误.

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  
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?我可以在Surface应用程序中使用VisualStateManager吗?

Jef*_*cox 5

确保你是

在4之前,VSM没有内置到WPF中.