在Winform中集成wpf的第三方控件 [英] Intgrating third party control of wpf in Winform

查看:118
本文介绍了在Winform中集成wpf的第三方控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1。我们正在用C#winform开发应用程序

2.我们需要使用word编辑器来试用telerik wpf的试用版。

3.我们需要流程图,组织结构图,片段和所有单词功能所以我们更喜欢teleriks wpf控件

4.为此我们在winform中集成了wpf控件。

5.但现在看来我们在托管时遇到问题wpf控件,wpf表单。

6.问题就像从winform调用wpf表单的控件一样,反之亦然。

7.现在我想要的是我们应该去wpf应用程序而不是在winform中集成wpf?

8. winform中的wpf表单有什么问题吗?

1. We are developing application in C# winform
2. We require word editor for that we tried for trial version of telerik wpf.
3. We require flowchart,organisation chart,snippets and all word functions so we prefer teleriks wpf controls
4. For that we integrated wpf controls in winform.
5. But now it seems that we are facing problems in hosting wpf controls ,wpf forms.
6.problems like calling wpf form's control from winform and vice versa.
7. Now i want suggession that shall we go for wpf application rather than integrating wpf in winform?
8. Is there any problems regarding to wpf forms in winform?

推荐答案

我能给出的最佳建议你是这样的:看看你为 System.Windows.Forms 或WPF开发了最重要且难以开发的控件,并切换到第一个或第二个库。如果你要保持整合,你的整体问题只会越来越大。但是,这不是100%肯定的建议。原则上,集成的WPF + Forms开发很有可能,但要避免它更好。



还有一点:哲学地考虑问题:毕竟,无论你做什么,你总能感觉到你使用的框架/库有一些好的控制缺陷。有时你需要一个目前在任何这些库中都没有的控件。那么,结论是什么?尝试让您的业务更加独立于第三方,确保它有点安全。为此,学习如何开发良好的控制,将您的工作时间投入其中。它将使您真正的所有者拥有您宝贵的代码断言。



我无法提供任何有关您的特定集成技术问题的建议,因为您没有描述它们,以及由于今年年底和即将到来的新年,我通过你的烟囱访问你的硬盘是有限的。哈哈哈。 :-)



-SA
The best advice I can give you as this: see what your most critically important and hard-to-develop controls are developed for, System.Windows.Forms or WPF and switch to either first or second library. If you are going to keep your "integration", your overall problems will only grow. However, this is not a 100% sure advice. In principle, integrated WPF+Forms development is quite possible, but it's much better to avoid it.

One more point to it: consider the problem philosophically: after all, no matter what you do, you can always feel some deficit of good controls for the framework/library you use. Sometimes you will need a control which is not presently available in any of those libraries. So, what's the conclusion? Try to make your business more independent from 3rd-parties, secure it a bit. For this purpose, learn how to develop good controls, invest your working time in it. It will make your real owners of your valuable of code asserts.

I cannot give any advice related to your particular technical problems of integration because you did not describe them, and my access to your hard drive through your chimney, due to the end of the year and approaching New Year is somewhat limited. Ho-ho-ho. :-)

—SA


我已按以下方式解决了这个问题

1.我添加了新的wpf应用程序,其中我添加了第三方wpf控件

2.我从winform设置了对wpf的引用

3.也没有问题,如果你在wpf应用程序中集成winform

4.我建议如果有人必须保留winform应用程序,如果想要添加wpf控件,那么就这样做。对于常用方法,路径添加一个类项目和请参考winform和wpf项目

谢谢
I have solved this problem in following way
1. I add new wpf application where i added third party wpf control
2. I set reference to wpf from winform
3. Also there is no problem if you integrate winform in wpf application
4. I suggest If anyone has to keep winform application and if wants to add wpf controls then do this way .Also for common methods,paths add one class project and refer in both winform and wpf project
Thanks


这篇关于在Winform中集成wpf的第三方控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆