Prism, connecting Views and ViewModels with Unity, trying to understand it
问题 Creating the View and View Model Using Unity Using Unity as your dependency injection container is similar to using MEF, and both property-based and constructor-based injection are supported. The principal difference is that the types are typically not implicitly discovered at run time; instead, they have to be registered with the container. Typically, you define an interface on the view model so the view model's specific concrete type can be decoupled from the view. For example, the view can