Click here to Skip to main content
15,889,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 .
Posted
Updated 20-Jan-17 21:44pm

1 solution

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!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900