Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The tag does not exist in XML namespace

Tags:

c#

wpf

xaml

I'm seeing the following error on 'FluidMoveBehavior'.

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

Here's the XAML file:

<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>
like image 572
Jess Avatar asked May 14 '12 09:05

Jess


1 Answers

Add the assembly microsoft.expression.interactions.dll to your project References.

Available freely here:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=75e13d71-7c53-4382-9592-6c07c6a00207&displaylang=en

EULA & Redistribution here:

C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.0

like image 138
erodewald Avatar answered Nov 10 '22 17:11

erodewald