开发者

What is best GUI toolkit to rewrite .NET WPF application to C++?

开发者 https://www.devze.com 2023-02-16 21:31 出处:网络
We have existing WPF application with complicated graphics (rounded edges of the window, speedometer style indicators etc).

We have existing WPF application with complicated graphics (rounded edges of the window, speedometer style indicators etc).

Since we rely on .NET our application needs .NET framework. Some users are unwilling to install .NET and we want to provide them with a version that does not need .NET and runs of Windows only (XP,Vista,W7).

Which graphical toolkit we should use to for this scenario?

So far I think Codejock Toolkit Pro is a good adept as we already have GUI in XAML and it could be easier to port GUI to C++.

However, another aspect is download size of the toolkit. We don't want to end up in the situation where toolkit size is so big (e.g. 20-40MB) that's comparable with .NET 4.0 framework开发者_Python百科 size.

I know some of you might think that going back from WPF to C++ is a bad idea, but for our scenario it is absolutely crucial to make user's installation process as easy as possible and .NET framework is a big stumbling block which we are trying to remove.


Sorry I do not have the answer to your question (and I would never ever even dream that I might do such a thing), but I am compelled to tell you as an advice

  • implementing all the WPF functionality in C++ will take 10-20 times more
  • installation of a C++ would not be necessarily easier
  • if you need to make installation easier, use SilverLight


We used QT in one of our projects in past which is Object Oriented and Multi Platform, but QT is mostly like WinForms

As I remember QT keeps UI in xml files too, try to write XSLT from xaml to QT xml. But I don't thik you can do it in complex WPF structures like Triggers or Animation


Have you evaluated QT? Since this relies on XML for UI definition too, it might be easier to port the code to.


You've already gotten a couple of answers recommending Qt -- and I'd agree that's probably your first choice. Note, however, that while Qt does support an XML-based UI description, they seem to be moving away from it toward QML, which is based on JavaScript instead.

Another possibility would be wxWidgets, which also supports an XML-based description of the widgets using XRC.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号