The “pretty” way to make a modal dialog in WPF with Prism and MVVM Pattern

前端 未结 4 2163
失恋的感觉
失恋的感觉 2020-12-15 06:18

yesterday i used google to find a few ways to make an awesome reusable modal dialog in WPF with PRISM 4.1 and the MVVM pattern. I found some examples but i must say non of t

4条回答
  •  情书的邮戳
    2020-12-15 07:00

    Interaction requests require a little more up-front work, but they are definitely the right way to go from the MVVM purist perspective...

    I saw an example of how to do this with Prism in Karl Shifflett's MVVM In The Box training extension.

    As I remember, the example was pretty rough around the edges, but it should set you in the right direction.

    The problem with this kind of in-view "Dialog" is it doesn't allow the dialog to go outside the bounds of the parent window. On the plus side, you can do a lot of fancy layout and animation stuff.

提交回复
热议问题