将WPF应用程序转换为Web应用程序的快捷方法 [英] Fast and easy way to convert WPF application into web application

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

问题描述





我有一个WPF应用程序我想在浏览器中显示该WPF应用程序。我们可以将应用程序转换为Web应用程序并重新编写代码,但最好是我们可以避免它。



我听说过,WPF应用程序(或表单)可以是在浏览器中显示,任何人都可以帮助我实现这一目标。



请指导,这是最好的方法和经济有效的方法。任何形式的帮助可能是它的代码片段,链接甚至建议都会对我有所帮助。



提前致谢。



我尝试了什么:



谷歌搜索和询问同事和朋友,任何形式的帮助都可能是非常感谢。

Hi,

I have a WPF application I want to display that WPF application within browser. We can Convert the application as Web Application and re write the code but best is if we can avoid it.

I heard that, WPF applications(or forms) can be shown within browser, can anybody please help me in achieving this.

Please help me by guiding, which is the best approach and cost effective approach. Any sort of help may be its code snippet, a link or even a suggestion would help me a lot.

Thanks in advance.

What I have tried:

Googling and inquiring with colleagues and friends, any sort of help could be greatly appreciated.

推荐答案

我相信你所引用的是XBAP应用程序。我鼓励你谷歌关于XBAP,看看它是否适合你想要完成的任务。



WPF XAML浏览器应用程序概述 [ ^ ]



将wpf转为网络应用程序 - Google搜索 [ ^ ]
I believe what you are referencing are XBAP applications. I encourage you to google about XBAP and see if it is right for what you want to accomplish.

WPF XAML Browser Applications Overview[^]

turn wpf to web application - Google Search[^]


您使用的是Model-View-ViewModel(MVVM)吗?在Web应用程序中使用MVVM而不是MVC(模型 - 视图 - 控制器)有一些可能性。我从来没有使用它们,所以我无法通过经验来判断。看,例如对于knockout.js。
Did you use the Model-View-ViewModel (MVVM)? There are some possibilities to use MVVM instead of MVC (Model-View-Controller) with Web Applications. I've never used them, so I cannot tell by experience. Look e.g. for knockout.js.


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

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