Is it better to use WPF over Windows Forms?

前端 未结 11 1088
谎友^
谎友^ 2020-12-15 05:32

For a brand new application, is it better to use WPF over Windows Forms? I used Windows Forms before but not much WPF. As far as I know, WPF is the successor to Windows Form

11条回答
  •  情话喂你
    2020-12-15 06:19

    If you're writing lots of custom controls I would choose WPF. Part of WPF's design is to be extendable, composable and the result is that it's dirt simple to write custom controls.

    I've done a bit of custom control writing in WinForms and it can be very challanging at time. Layout will really take some time away from you. Several weekends of my life were paid to WinForm Control Layout. Writing the equivalent controls in WPF was a cinch.

提交回复
热议问题