What is WPF for the WinForms programmer?

后端 未结 8 539
余生分开走
余生分开走 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 12:11

    WPF should be every WinForms programmer's dream: instead of procedurally doing every little thing, it lets you say what the controls are, where to put them, what they look like, and to some extent even how they behave in XAML, while letting you customize behavior in the "code behind". Oh, and the designer can do a lot more for you now than before because of the declarative nature of XAML.

    0 讨论(0)
  • 2021-02-04 12:14

    The XAML part of a WPF application is vaguely a replacement of the WinForm.Designer.cs file in WinForms.

    The WPF model has a better design for the UI and individual controls, fixing a lot of the short-comings of WinForms and guides you to (hopefully) a better Seperation of Concern design.

    0 讨论(0)
提交回复
热议问题