我想在winform中添加xaml文件... [英] I want to add xaml file in winform...

查看:751
本文介绍了我想在winform中添加xaml文件...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以窗口形式(VB.net)添加xaml文件。如何添加它(xaml文件)以及如何在按钮点击事件中显示它? plz帮帮我。

I want to add xaml file in window form(VB.net). how to add it(xaml file) and how to show it on button click event? plz help me.

推荐答案

你不能直接在Windows窗体中添加一个xaml文件。

您可以使用WPF或xaml。
You cannot directly add a xaml file in windows form.
You either work with WPF or with xaml.


在Windows窗体上使用WPF控件的唯一方法是使用 ElementHost [ ^ ]。您需要创建一个WPF控件,然后您可以在Windows窗体上托管它:

http://msdn.microsoft.com/en-us/library/ms742215%28v=vs.110%29.aspx [ ^ ]
The only way to use WPF controls on a Windows Form is to use a ElementHost[^]. You need to create a WPF control and then you can host that on a Windows Form:
http://msdn.microsoft.com/en-us/library/ms742215%28v=vs.110%29.aspx[^]


这篇关于我想在winform中添加xaml文件...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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