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

后端 未结 5 1602
情书的邮戳
情书的邮戳 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:27

    Glad to hear I am not the only one that thinks the commanding implementations out there are overkill. Databinding seems naturally well-supported but I have been banging my head for weeks trying to understand command bindings for things other than buttons and elements that inherit from it.

    Thanks for posting this question. I think from now on I am going to handle all events in the view layer with a redirect to the view model functions. I think this is how they taught basic MVVM in one of Microsoft's XAMLFest 2-day course. Good enough for me!

提交回复
热议问题