使用WPF控件在Web项目 [英] Use WPF Controls in Web project

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

问题描述

我创建了我的asp.net项目解决方案的另一个WPF项目,现在想用我的WPF控件在我的Web应用程序。是否有可能使用在我的web项目WPF控件?我想出互联网上也有人说,像你这样使用Silverlight的Web applicaitons。据我知道Silverlight是WPF的子部分,为什么不能我就可以使用WPF ??。我必须使用WPF控件,因为已经没有足够努力构建WPF控件,现在想在Web应用程序使用。

I created another WPF project in my asp.net project solution and now want to use my WPF controls in my web application. Is it possible to use wpf control in my web projects?? I figure out on internet some says like you have to use Silverlight for web applicaitons. As far I know silverlight is subpart of WPF, so why not i can use WPF??. I have to use WPF controls because already did enough efforts to build wpf controls and now wanna to use in Web application.

推荐答案

是的,你可以嵌入WPF在网页控制,但你必须启用(很像的Silverlight)的相关插件。

Yes, you can embed WPF controls in a webpage, but you'll need the relevant plug-in enabled (much like Silverlight).

作为一个例子,<一href=\"http://demo.xceed.com/ClickOnce/DataGrid_WPF/Demo/Xceed.Wpf.DataGrid.Samples.LiveExplorer.xbap\"相对=nofollow> Xceed的Datagrid为WPF 是IE浏览器中查看。

As an example the Xceed Datagrid for WPF is viewable within Internet Explorer.

虽然XAML应用程序默认情况下禁用,你需要让他们在您的Internet Explorer的安全设置。

Although XAML applications are disabled by default, you'll need to enable them in your Internet Explorer security settings.

至于火狐,你既需要.net Framework助手和WPF插件通过的 MSDN

As for Firefox, you'll need both the .Net Framework Assistant, and WPF Plugin as suggested by MSDN.

WPF是一个真正伟大的框架,并为企业内部网的使用使WPF / XAML的应用程序就可以了(你可以通过继承组策略的安全权限),或为一组的观众谁不介意额外的配置。

WPF is a really great framework, and enabling WPF/XAML based applications for intranet usage would be fine (you could inherit the security permissions through group policy), or for a set audience who don't mind the extra configuration.

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

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