在 WinForms 中使用 XAML [英] Using XAML in WinForms

查看:24
本文介绍了在 WinForms 中使用 XAML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个完整的 WinForms 应用程序中使用 XAML 在编译时生成类.尽管我愿意接受建议,但我不想使用 WPF.

I want to use XAML to generate classes at compile time in a complete WinForms app. I don't want to use WPF although I am open to suggestions.

这似乎应该是可能的,但我找不到任何有关具体方法的信息.我发现最接近的是这个页面:http://anoriginalidea.wordpress.com/2007/12/13/weird-science-defining-winforms-in-xaml/

It seems like this should be possible but I can't find any information about exactly how. The closest thing I've found is this page: http://anoriginalidea.wordpress.com/2007/12/13/weird-science-defining-winforms-in-xaml/

有什么想法吗?

推荐答案

在很长一段时间后回答我自己的问题,这里是我正在谈论的一个例子:

To answer my own question after a long long time, here is an example of what I was talking about:

http://code.msdn.microsoft.com/windowsdesktop/use-xaml-to-design-winform-75d73893

不知道它实际上有多大用处,但在技术上是可行的.

Don't know how useful it would actually be but it is technically possible.

这篇关于在 WinForms 中使用 XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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