none
Silverlight 5 + Prism (InteractionRequest) & bug (maybe)

    Question

  • 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.

    Friday, December 09, 2011 9:33 PM

Answers