Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: Prism-MEF: how to navigate to view in different module using UriQuey

$
0
0
Hi isakavis
Thanks for your effort.

I used following code in ControllerA to navigate to View_B (TestPacksView) and send the parameter
SubsystemNo
 var uriQuery = new UriQuery();
            if (Subsys != null)
            {
                uriQuery.Add("SubsystemNo", Subsys.SubsystemNo);

            }

            var uri = new Uri("TestPacksView" + uriQuery.ToString(), UriKind.Relative);
           
            regionManager.RequestNavigate("TestPackGridRegion", uri);

        }
then i got this ActivationException:


"Activation error occured while trying to get instance of type Object, key "TestPacksView"

i don't know if this is because View_B (TestPacksView) in different module or because the parameter
"SubsystemNo" is not received by the ViewModel_B hence View_B not constructed ...

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>