Load WPF UI into MVVM application from plug-in assembly

前端 未结 3 1882
青春惊慌失措
青春惊慌失措 2020-12-04 17:10

I am working on an application that uses a plug-in architecture to expand it\'s functionality. What is the best way to load WPF UIs from a plug-in?

I will have a li

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 17:41

    It sounds like what you are looking for has already been accomplished with Prism. You define regions and then modules get loaded at runtime that may or may not have views for those regions. This works if all your applications are built against the modularity concepts derived from Prism. There are others out there, but Prism has this taken care of pretty extensively.

提交回复
热议问题