Why are events and commands in MVVM so unsupported by WPF / Visual Studio?

后端 未结 5 1760
情书的邮戳
情书的邮戳 2021-02-05 09:43

When creating an WPF application with the MVVM pattern, it seems I have to gather the necessary tools myself to even begin the most rudimentary event handling,

5条回答
  •  我寻月下人不归
    2021-02-05 10:28

    Becuase MVVM was "invented" way after WPF... hence why large pieces of the MVVM puzzle are not part of the WPF framework.

    Not only that but MVVM itself was declared a "pattern" before it was even proven/practised in the real world. Which is the complete opposite of what patterns are all about - they are usually spotted and documented after many years of successful use by lots of different people.

    One guy coming up with an pattern does not a pattern make.

提交回复
热议问题