Coder Social home page Coder Social logo

Comments (13)

brianlagunas avatar brianlagunas commented on July 23, 2024

Can you provide a link to a sample that reproduces this issue?

from prism.

briannoyes avatar briannoyes commented on July 23, 2024

Not sure if this is from the same person, have been having discussion about this here: http://compositewpf.codeplex.com/discussions/627396#post1418779

And just asked them to post as an issue here this morning.

from prism.

Haukinger avatar Haukinger commented on July 23, 2024

Not the same person, but probably the same issue.
I'll post a sample, but not before the weekend I'm afraid.

EDIT: this was way easier to reproduce than I thought :-)
use this project and put it in the prism v5 solution (and add unity via nuget):
https://www.dropbox.com/s/kphigdw9psfj5jk/InteractionRequestIssue.zip?dl=0

to see the issue, navigate to first view and trigger the popup -> works fine
then navigate to second view, and back to first view
try to trigger the popup -> won't work anymore

from prism.

Haukinger avatar Haukinger commented on July 23, 2024

Any news on this one? Does the sample work for you?

from prism.

briannoyes avatar briannoyes commented on July 23, 2024

Thanks for the repro, I can run and see the problem there. This issue is in our backlog and will try to get a fix in with our next release.

from prism.

brianlagunas avatar brianlagunas commented on July 23, 2024

I am looking into this. For now, you can get around this issue by using the RegionMemberLifetime attribute on the view.

[RegionMemberLifetime(KeepAlive = false)]
public partial class FirstView : INavigationAware

This will fix the issue by creating a new instance of the view each time you navigate to it.

from prism.

brianlagunas avatar brianlagunas commented on July 23, 2024

Alright this had been fixed. I would also like to point out that we have decided to make the InteractionRequestTrigger Obsolete since it really isn't needed. You can use the built-in EventTrigger like this:

from prism.

tkthatikonda avatar tkthatikonda commented on July 23, 2024

Hello Brian,

We have a similar issue but the resolution [RegionMemberLifetime(KeepAlive = false)] is not helping here.

We have a view that opens a UserControl (UC1) as a popup using InteractionRequest.

        UC1ViewRequest.Raise(new UC1ViewModel
        {
            Title = "User Control 1"

        });

UC1 has a button that opens another UserControl (UC2) as a popup using InteractionRequest.

        UC2ViewRequest.Raise(new UC2ViewModel
        {
            Title = "User Control 2"

        });

Opening UC2 again and again from UC1 works fine as long as UC1 is not closed.

But after closing UC1, UC2 cannot be shown/opened from UC1 but UC1 can be opened again from the main view.

The Raised event on the UC2ViewRequest is null.

Please advise. I can send you a sample to reproduce.

from prism.

brianlagunas avatar brianlagunas commented on July 23, 2024

This issue has been fixed and was closed. If you need the fix right away, you can use the latest source code.

from prism.

tkthatikonda avatar tkthatikonda commented on July 23, 2024

Hello Brian,

Could we know the fix for Prism 5? We can rebuild the source code with the fix. Or is the fix only available in latest version Prism 6?

Thanks

from prism.

brianlagunas avatar brianlagunas commented on July 23, 2024

The fix is only available for Prims 6. If you are using Prism 5, just use the built in EventTrigger and set the EventName="Raised"

from prism.

tkthatikonda avatar tkthatikonda commented on July 23, 2024

Thanks Brian for your prompt response. That worked!!

from prism.

lock avatar lock commented on July 23, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from prism.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.