0

I'm working on a MVVM app using Prism.

I need to show a view that return a value (selected object) from a DelegateCommand of another view.

Please, what you suggest ?

Thanks

nadjibnet
  • 54
  • 8

1 Answers1

0

In PRISM that's an "interaction request".

There's an example in the samples you could download.
You can see the code on this page:
https://msdn.microsoft.com/en-us/library/ff921081(v=pandp.40).aspx

See the item selection view.

If that doesn't suit for some reason then I have a different non-PRISM approach which you could probably adapt easier than the PRISM stuff.

Andy
  • 11,864
  • 2
  • 17
  • 20
  • Here's a somewhat real-life example of an interaction request https://stackoverflow.com/questions/35238759/prism-custom-confirmation-interaction/35239947#35239947 ... but the interaction request in it's current form might not stay around for too long, as the prism team doesn't really like it, see this discussion https://github.com/PrismLibrary/Prism/issues/864 – Haukinger May 05 '18 at 10:44