WPF: Is Prism overkill for small apps?

后端 未结 3 2238
天涯浪人
天涯浪人 2021-02-19 10:26

If I don\'t split my app into different modules (otherwise I would argue that Prism would defo be the way to go) should I use Prism?

I know that Prism gives a convenient

相关标签:
3条回答
  • 2021-02-19 10:41

    For smaller apps, caliburn micro provides a simpler framework. To me prism is especially useful when you need to define regions in your application.

    0 讨论(0)
  • 2021-02-19 10:50

    For a small application you could definitely see it as overkill, but even for a small application you have identified some useful aspects e.g. DelegatedCommand and IEventAggregator (which BTW come with weak event handling so not totally trivial to implement correctly).

    Perhaps a more light-weight framework might be more suitable. I only know Prism, so can't really comment.

    One point I would make though, is that it is very common for small applications to start small, but then evolve into bigger applications. Putting the relatively small amount of effort into architecting it right in the first place is better than paying for the monumental (and sometimes impossible) task of sorting it out later.

    0 讨论(0)
  • 2021-02-19 10:50

    MVVM Light is the best bet....!

    0 讨论(0)
提交回复
热议问题