WPF v/s System.Drawing

后端 未结 3 421
北恋
北恋 2021-01-06 11:30

I have to code a simple control in .Net that draws geometry that looks like following image and the geometry doesn\'t get any more complex than shown in this image, i.e. it

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-06 12:17

    Indeed, you cannot base your decision wheter to go for WPF / Winform based on whether you want to draw the above thing. You will be able to draw the above thing in System.Drawing without much problem.

    More interesting would be the following: Is the above artefact represented by some complex object? In that case you can teach WPF to just render said object in the above way. If you have a program that e.g. dynamically changes essential dimensions, then you can tell WPF that if you change those values in your object, the display of it must be altered as well.

    All in all the two technologies are quite different, however, I would deem WPF to be the more complete one - even so, personally I think WPF came a few years too early, considering how slow adoption is compared to its possibilities.

提交回复
热议问题