可以在浏览器和桌面上运行的窗口应用程序 [英] Window application that can run in browser and desktop both

查看:265
本文介绍了可以在浏览器和桌面上运行的窗口应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是开发人员,我只在基于窗口的应用程序中工作,不了解Web应用程序。我的问题是我想创建一个桌面应用程序,可以在桌面和浏览器中轻松运行,这意味着我必须制作一个用户界面并编写一次代码。



我尝试了什么:



i已经阅读了WPF,但对wpf浏览器应用程序,wpf桌面应用程序,wpf导航应用程序感到困惑。我也读过有关Microsoft azure远程应用程序的内容。我的问题是,如果没有任何解决方案,我们是否可以在Wpf或Azure中为桌面和Web开发混合应用程序。

I am a developer and i works only in window based application and don't know about web applications. my problem is that i want to create a desktop application that can be easily run in desktop and browser also , it means i have to make a single UI and write codes 1 time .

What I have tried:

i have read about WPF but confused about wpf browser application, wpf desktop application, wpf navigation application.Also i have read about Microsoft azure remote app. My question is that can we develop a hybrid application for both desktop and web in Wpf or Azure if not than is there any solution .

推荐答案

你无法运行浏览器中的桌面应用程序:出于安全原因,您无权直接在客户端计算机上运行任何可执行文件。

此外,您无法使用VB或C#执行此类任务 - 绝对没有保证客户端计算机安装了正确版本的.NET(或实际上是任何版本),或者甚至能够运行.NET应用程序!例如,它可以是支持互联网的冰箱,或物联网儿童玩具!



它们是非常非常不同的环境,客户端代码需要使用HTML和JavaScript ,这与Windows应用程序非常非常不同。



如果您正确设计了应用程序,可能会有共同的数据和业务层,而且只是换掉两个应用程序的表示层,但你仍然需要为基于Web的应用程序编写一个全新的PL。



是的,那是也适用于WPF和Azure!
You can't run a desktop app in a browser: you have no access to run any executable directly on a client machine for security reasons.
Additionally, you could not use VB or C# for such a task either - there is absolutely no guarantee that a client machine has the right version of .NET installed (or indeed any version), or even that it is capable of running a .NET application! It could for example be an internet enabled fridge, or an IoT childs toy!

They are very, very different environments, and client code needs to be in HTML and javascript, which is very, very different to windows apps.

It is possible that if you designed your app correctly, you could have common data and business layers, and just "swap out" the presentation layers for the two applications, but you would still have to write a completely new PL for the web-based application.

And yes, that does apply to WPF and Azure as well!


这篇关于可以在浏览器和桌面上运行的窗口应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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