Comments (13)
Can you provide a link to a sample that reproduces this issue?
from prism.
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.
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.
Any news on this one? Does the sample work for you?
from prism.
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.
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.
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.
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.
This issue has been fixed and was closed. If you need the fix right away, you can use the latest source code.
from prism.
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.
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.
Thanks Brian for your prompt response. That worked!!
from prism.
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)
- [BUG][MAUI] EventToCommandBehavior with RelativeSource binding throws InvalidOperationException HOT 4
- [BUG] Content of a ContentPage doesn't occupy full height when page is pushed to PrismNavigationPage HOT 4
- [BUG] When using iOS ModalPresentationStyles that can be automatically dismissed, navigation service gets out of sync & stops working with NavigationPage HOT 2
- [BUG] Unable to unregister the service using the Prism.Maui HOT 1
- No Root Window has been created HOT 1
- [Feature Request] Add support Keyed Service for IServiceCollection HOT 2
- Resolving with Unity works, not with DryIoc HOT 3
- [Enhancement] GetNavigationUriPath For Maui HOT 3
- [BUG] Android "hardware" back button closes the app when app contains a tabbed page with a navigation page as root page for one of the tabs HOT 1
- [BUG] Getting exception while navigating in Release mode on iOS HOT 19
- [BUG] [Android] Open app from url scheme crashes app HOT 3
- [BUG] Navigation Title view is not getting displayed on IOS HOT 2
- [BUG] Navigation Title view is not getting displayed with .net 8.0 on Andriord and IOS HOT 4
- [BUG] BindingContext cleared when performing absolute navigation HOT 3
- [Enhancement] NavigateFrom
- [Enhancement] Add ability to switch tabs and navigate
- [BUG] Android "hardware" back button closes the app when app contains a tabbed page with a navigation page as root page for one of the tabs, Take 2 HOT 4
- [BUG] Popup Dialogs are hidden/covered by calling Page when called after returning from MAUI FilePicker HOT 2
- [BUG] Link to Prism License T&C is wrong HOT 1
- PrismNavigationPage doesn't allow you to change navbar title color HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prism.