Hello everyone,
I have a visualizing module for 2D vector graphics. All calls to drawing API are strictly isolated there. I want to be able replace one drawing API with another drawing API just by reimplementing the module. All data for visualizing are transmitted into the module through a single interface named Ixxx. I have a choice between GDI+ (via WinForms) and WPF, so why should I choose the last one? Any reason?
After some analysis of common cases of switching to WPF among friends, I have found that the primary causes are:
- WPF is newer/cooler/more modern/more interesting/blah-blah-blah.
- Ixxx is not designed abstract enough (for instance, raw XAML is transmitted) or it doesn't exist at all (any module draws anything, anywhen and the way it wants). Sure, if you have no own graphical description solution, it's better to use XAML than to use nothing and to share common HDC.
Again, I'm not going to "sell my soul" (see AJ&TZ for details) to any given API, I'd like just "to lease it" temporary. It means no using API for anything except drawing all data in the same place.
Regards, Serge.