C# XML命名空间中不存在该标记

C# XML命名空间中不存在该标记,c#,wpf,xaml,C#,Wpf,Xaml,我在“FluidMoveBehavior”上看到以下错误 The tag 'FluidMoveBehavior' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactions'. Line 22 Position 14. 以下是XAML文件: <Window x:Class="GoogleMapProject.KinectOverlay" xmlns="

我在“FluidMoveBehavior”上看到以下错误

The tag 'FluidMoveBehavior' does not exist in XML namespace
'http://schemas.microsoft.com/expression/2010/interactions'.
Line 22 Position 14.
以下是XAML文件:

<Window x:Class="GoogleMapProject.KinectOverlay"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
        xmlns:GoogleMapProject_Behaviors="clr-namespaces:GoogleMapProject.Behaviors"
        WindowState="Maximized" WindowStyle="None" Background="Transparent"
                     AllowsTransparency="True"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Height="300"
        Width="300"
        Title="KinectOverlay"
        DataContext="{Binding PoseViewModel,
                      Source={StaticResource MainViewModel}}">

    <Grid>
        <i:Interaction.Behaviors>
            <ei:FluidMoveBehavior AppliesTo="Children" Duration="0:0:0.5">
                <ei:FluidMoveBehavior.EaseX>
                    <SineEase EasingMode="EaseInOut"/>
                </ei:FluidMoveBehavior.EaseX>
                <ei:FluidMoveBehavior.EaseY>
                    <SineEase EasingMode="EaseInOut"/>
                </ei:FluidMoveBehavior.EaseY>
            </ei:FluidMoveBehavior>
        </i:Interaction.Behaviors>
        <Canvas Background="Transparent"
                DataContext="{Binding PoseViewModel,
                              Source={StaticResource MainViewModel}}">

            <!-- Left hand -->
            <Image Source="{Binding LeftHandImage}" x:Name="leftHand" Stretch="Fill"
                   Canvas.Left="{Binding LeftHandPosition.X, Mode=TwoWay}"  
                   Canvas.Top="{Binding LeftHandPosition.Y, Mode=TwoWay}"
                   Visibility="{Binding HandVisibility}" Opacity="0.75"
                   Height="118" Width="80" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="{Binding LeftHandScale}"
                                        ScaleY="{Binding LeftHandScale}"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform X="-40" Y="-59"/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>

            <!-- Right hand -->
            <Image x:Name="righthand" Source="{Binding RightHandImage}"
                   Stretch="Fill"
                   Canvas.Left="{Binding RightHandPosition.X, Mode=TwoWay}"  
                   Canvas.Top="{Binding RightHandPosition.Y, Mode=TwoWay}"
                   Visibility="{Binding HandVisibility}" Opacity="0.75"
                   Height="118" Width="80" RenderTransformOrigin="0.5,0.5">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="{Binding RightHandScale}"
                                        ScaleY="{Binding RightHandScale}"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform X="-40" Y="-59"/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>

            <!-- Video -->
            <Image Canvas.Left="0" Canvas.Top="100" Width ="360"
                   Visibility="{Binding ShowVideo,
                          Converter={StaticResource booleanToVisibilityConverter}}">
                <i:Interaction.Behaviors>
                    <GoogleMapProject_Behaviors:DisplayVideoBehavior/>
                </i:Interaction.Behaviors>
            </Image>

            <!-- Shows last speech command -->
            <TextBlock Canvas.Left="10" Canvas.Top="500"
                       Text="{Binding LastCommand}" FontSize="36"
                       Foreground="#FF001900">
            </TextBlock>
        </Canvas>
    </Grid>
</Window>

将程序集
microsoft.expression.interactions.dll
添加到项目引用中

可在此免费获取:

此处的EULA和重新分配:

C:\ProgramFiles(x86)\Microsoft SDK\Expression\Blend\.NETFramework\v4.0

对我来说正在工作

我做了以下步骤

1) 项目>属性>目标框架>4.0

2) 重新制作“System.Windows.Interactivity”的参考


我希望它对您有用。

它可能会解决您的问题,嗯,我已经尝试过了,但没有任何用处:(Try
xmlns:ei=“clr namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions”
谢谢,但仍然有相同的错误消息~你到底安装了Expression Blend吗?microsoft.Expression.interactions.dll已经在我的项目引用中:)啊,你的问题还不清楚。它应该有效(我有一个有效的例子)。程序集microsoft.expression.interactions.dll的版本是什么?该错误表示您拥有的任何版本都不包含FluidMoveBehavior。在对象浏览器中打开它,如果在其中看到FluidMoveBehavior,请告诉我。您可能有一个不包含此类的旧版本。我已打开对象浏览器,FluidMoveBehavior位于Microsoft.Expression.Interactivity.Layout下。我的Microsoft.Expression.interactions.dll的版本为3.5.0.0