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

后端 未结 5 1617
情书的邮戳
情书的邮戳 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 10:40

    Take a look at this MVVM project template for VisualStudio.

    http://blogs.msdn.com/llobo/archive/2009/05/01/download-m-v-vm-project-template-toolkit.aspx

    With this template you get various DelegateCommand classes which cover different needs for ICommands, and a CommandReference class that helps with key bindings.

    It's a good start...

提交回复
热议问题