将xaml嵌入Windows窗体应用程序 [英] embedding xaml in windows forms application

查看:86
本文介绍了将xaml嵌入Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C#的Windows窗体应用程序中嵌入xaml动画?

how to embed xaml animation in a windows form application in C#?

推荐答案

您不能将WPF与传统的WinForm AFAIK混合
You can''t mix WPF with a traditional WinForm AFAIK


原则上可以,但是这太困难了,不建议这样做.与任何混合机会相比,创建一个体面的WPF应用程序要容易得多,结果要好得多.

WPF和Forms库之间几乎没有任何关系,并且WPF实际上与Windows无关,即使它是为Windows实现的,它也是基于DirectX的.存在互操作性层,但使用起来并不容易.

请参阅 http://msdn.microsoft.com/en-us/library/ms751797.aspx [ ^ ].

—SA
In principle you can, but this is too difficult and not recommended. Compared to any hybrid opportunities, creating a decent WPF application would be much easier, with much better results.

WPF and Forms libraries have almost nothing to do with each other, and WPF has actually very little to do with Windows even though it is implemented for Windows, it''s based on DirectX. Interoperability layers exists, but it''s not so easy to use.

See http://msdn.microsoft.com/en-us/library/ms751797.aspx[^].

—SA


这篇关于将xaml嵌入Windows窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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