将WPF转换为Web [英] Converting WPF to Web

查看:750
本文介绍了将WPF转换为Web的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是使用Infragistics控件(xaml)内置到WPF中的.

My application is built into WPF using Infragistics control(xaml).

我想将现有应用程序移植到Web中,但是我们不想使用silverlight(对于Silverlight,我们需要插件在浏览器中可用,并且目标用户将无权在其浏览器中安装任何插件)没有任何可用的第三方控件,可以帮助我们更快地将WPF页面移植到WEB.

I wanted to port the existing app into Web but we don't want to use silverlight(for silverlight we need plugin to be available in our browser and target users will not be having permission to install any plugin into their browser) is there any third part control available which helps us to port our WPF pages into WEB faster.

推荐答案

有两种方法可以将WPF移植到Web:

There are two ways to port WPF to web:

  1. Silverlight(您说过不能使用)和
  2. WPF XAML浏览器应用程序

这些是我所知道的唯一选择.

Those are the only options I'm aware off.

如果要将WPF应用程序转换为ASP.NET Web表单或MVC,则必须手动进行.为了简化操作,可以创建WPF和Web应用程序都可以使用的共享代码.

If you want to convert your WPF app to ASP.NET Web forms or MVC you would have to do it manually.To make it easier you could create shared code which can be used by both WPF and the web application.

如果您在WPF项目中遵循了MVVM模式,这将使您的工作变得更加轻松,因为您可以在MVC中重用视图模型(稍作更改)

If you've followed the MVVM pattern in the WPF project that will make your job a lot easier as you can re-use the view model in MVC (with minor changes)

这篇关于将WPF转换为Web的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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