MVC Frameworks for WPF

后端 未结 5 1160
自闭症患者
自闭症患者 2021-02-06 09:54

Are there any MVC frameworks available for WPF other than Caliburn (which looks awesome btw)?

5条回答
  •  我在风中等你
    2021-02-06 10:36

    A new MVC framework that works with practically and .net technology (WebForms, WinForms, WPF, Xamarin Forms) is SimpleMVC by Gateway Programming School. This link gives an overview and example usage.

    A short example is to create a controller from SimpleControllerBase that has your business logic. This will depend on the SimpleModelBase implementations you provide. Implementations of ISimpleView are handled through WPF pages and controls. The derived controller only works with the interfaces that extend ISimpleView so that the WPF parts are abstracted away. You then use properties on the view to do two-way data-binding, just like MVVM, but with a proper layered architecture.

提交回复
热议问题