Developing WPF software without MVVM

后端 未结 5 957
走了就别回头了
走了就别回头了 2020-12-30 10:05

We want to start develop an intermediate desktop software. We decided to use the WPF. We don\'t want to use the MVVM pattern. Because we are not familiar with MVVM, and als

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-30 10:49

    MVVM is not required but it solves some common problems with presentation logic. For example, consider the IsBusy ViewModel property. It is set from any operation that has a duration and can be used from Command.CanExecute to signal bound controls to disable themselves when something is running. One property for both logic and UI manipulation. You can think more examples like this that will guide you towards MVVM. It's what the bindings offer that matters, not the pattern it self.

提交回复
热议问题