InteractionRequest

Aug 4, 2011 at 7:31 AM

Hi List,

i use the following XAML:

.......

x

 

:Class="ModuleB.Views.ModuleBWorkspace"

 

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

......................

<Button Padding="6,3" Margin="6,0" Content="Notification Dialog" >
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="Click" >
                    <ei:CallMethodAction TargetObject="{Binding}" MethodName="MyMethod">
                    
                    </ei:CallMethodAction>
                </i:EventTrigger>
            </i:Interaction.Triggers>

i always get the follong XAMLParseException:

 "Microsoft.Expression.Interactions, PublicKeyToken=31bf3856ad364e35" not found

What to do?

Peter

 

 
Developer
Aug 4, 2011 at 12:55 PM

Hi Peter,

You could try adding a reference to the Microsoft.Expression.Interactions and System.Windows.Interactivity libraries in both the module that contains the view you're adding an interaction request to, and the shell project of your prism application.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi

Aug 5, 2011 at 5:39 AM

Hi,

i have the references only in my module.

So i will try to add them in the Shell Project as well.

Thanks

Peter

 

Aug 5, 2011 at 2:24 PM

Hi,

it works.

Thanks a lot

Peter