Silverlight 5 + Prism (InteractionRequest) & bug (maybe)
-
Friday, December 09, 2011 9:33 PM
Until today I was using SL4 + Prism4 (InteractionRequest pattern).
Here is previous example of code:
...xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Interactivity.InteractionRequest;assembly=Microsoft.Practices.Prism.Interactivity"
...<i:Interaction.Triggers> <prism:InteractionRequestTrigger SourceObject="{Binding LoginRegistrationRequest}"> <prism:PopupChildWindowAction> <prism:PopupChildWindowAction.ChildWindow> <Views:LoginRegistrationWindow/> </prismPopupChildWindowAction.ChildWindow> </prismPopupChildWindowAction> </prismInteractionRequestTrigger> </i:Interaction.Triggers>
After upgrading to SL5 this piece of code doesn't work:
"A value of type InteractionRequestTrigger cannot be added to a collection or dictionary of type 'TriggerCollection'. "
A bug? Any help?
B.
All Replies
-
Saturday, December 10, 2011 3:55 PM
There is no bug.
PrismLibrary source code should be recompiled for Silverlight 5 and new dlls should be referenced to the project.
Here is the explanation: http://compositewpf.codeplex.com/discussions/282474
B.

