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

New Post: Prism/Unity Navigation question

$
0
0

I have a view and corresponding view model for adding or editing a customer. If I click the Add new customer button, unity wires me up a nice shiny new CustomerView and passes in my datacontext and view model. I save my customer and now want to view another, existing customer record, from my datagrid. I have a command that accepts the selectedItem (Customer) from the datagrid and I now want to pass this in to my CustomerView as a parameter, that is declared in my Constructor for the View Model. How do I tell Unity that I now want to build my View and view model with my Client parameter and then navigate to the view?

Thanks.


Viewing all articles
Browse latest Browse all 1878

Trending Articles



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