What is WPF for the WinForms programmer?

后端 未结 8 537
余生分开走
余生分开走 2021-02-04 11:42

What is WPF to the WinForms programmer?

WinForms distilled is adding controls to forms, and adding event handlers. This is simple and easy and allows you to make functio

8条回答
  •  情歌与酒
    2021-02-04 11:57

    I found XAML to be a bit complicated, too, at the beginning, but once i got used to it, i found it to be pretty simple (once you know the basic controls). One of the best things about it is Databinding.

    Usually when i write a WPF application, i use it for pretty much everything on my UI. Binding controls to Commands and properties of a viewmodel can completely separate presentation from design, i usually have not a single line of code in my code-behind. That makes my ViewModel/business logic objects easily testable and completely independent from any visual representation, which in turn can be easily replaced.

提交回复
热议问题